Workaround a bug in Safe-PHP causes PHPStan errors

This commit is contained in:
Mike Colagrosso 2024-05-23 22:13:45 -06:00 committed by Alex Cabal
parent 72d679a04f
commit 5c69923176
3 changed files with 7 additions and 10 deletions

View file

@ -581,11 +581,12 @@ class Ebook{
// *******
/**
* @throws \Exception
* @throws \Exceptions\ValidationException
*/
public function Validate(): void{
/** @throws void */
$now = new DateTimeImmutable();
$error = new Exceptions\ValidationException();
if($this->Identifier == ''){
@ -744,7 +745,7 @@ class Ebook{
}
/**
* @throws \Exception
* @throws Exceptions\ValidationException
*/
public function CreateOrUpdate(): void{
try{
@ -1103,7 +1104,7 @@ class Ebook{
}
/**
* @throws \Exception
* @throws Exceptions\ValidationException
*/
public function Create(): void{
$this->Validate();
@ -1157,7 +1158,7 @@ class Ebook{
}
/**
* @throws \Exception
* @throws Exceptions\ValidationException
*/
public function Save(): void{
$this->Validate();