mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 14:20:29 -04:00
More type hinting
This commit is contained in:
parent
6f0d1f7aa8
commit
cb79832092
3 changed files with 7 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
namespace Exceptions;
|
||||
|
||||
class SeeOtherEbookException extends AppException{
|
||||
public $Url;
|
||||
public string $Url;
|
||||
|
||||
public function __construct(string $url = ''){
|
||||
$this->Url = $url;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
namespace Exceptions;
|
||||
|
||||
class StringTooLongException extends AppException{
|
||||
public $Source;
|
||||
public string $Source;
|
||||
|
||||
public function __construct(string $source = ''){
|
||||
$this->Source = $source;
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
/**
|
||||
* @property array<\Exception> $Exceptions
|
||||
*/
|
||||
class ValidationException extends AppException{
|
||||
public $Exceptions = [];
|
||||
public $HasExceptions = false;
|
||||
public $IsFatal = false;
|
||||
public bool $HasExceptions = false;
|
||||
public bool $IsFatal = false;
|
||||
|
||||
public function __toString(): string{
|
||||
$output = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue