mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Workaround a bug in Safe-PHP causes PHPStan errors
This commit is contained in:
parent
72d679a04f
commit
5c69923176
3 changed files with 7 additions and 10 deletions
|
@ -7,10 +7,8 @@ class InvalidEbookUpdatedDatetimeException extends AppException{
|
|||
/** @var string $message */
|
||||
protected $message = 'Invalid EbookUpdated datetime.';
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function __construct(DateTimeImmutable $updatedDatetime){
|
||||
/** @throws void */
|
||||
$now = new DateTimeImmutable();
|
||||
$this->message = 'Invalid EbookUpdated datetime. ' . $updatedDatetime->format('Y-m-d') . ' is not between ' . EBOOK_EARLIEST_CREATION_DATE->format('Y-m-d') . ' and ' . $now->format('Y-m-d') . '.';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue