mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 21:04:49 -04:00
Use a NOW constant instead of new DateTimeImmutable objects, and tweak how some donation drive dates work
This commit is contained in:
parent
376dacd833
commit
eec79712fc
27 changed files with 108 additions and 143 deletions
|
@ -87,9 +87,7 @@ class Artist{
|
|||
* @throws Exceptions\InvalidArtistException
|
||||
*/
|
||||
public function Validate(): void{
|
||||
/** @throws void */
|
||||
$now = new DateTimeImmutable();
|
||||
$thisYear = intval($now->format('Y'));
|
||||
$thisYear = intval(NOW->format('Y'));
|
||||
|
||||
$error = new Exceptions\InvalidArtistException();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue