Ran PHPstan checks.

This commit is contained in:
flash 2025-02-08 02:45:41 +00:00
parent c28e0a90dd
commit 4a3d63c065
2 changed files with 5 additions and 10 deletions

10
composer.lock generated
View file

@ -2905,16 +2905,16 @@
}, },
{ {
"name": "phpstan/phpstan", "name": "phpstan/phpstan",
"version": "2.1.2", "version": "2.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpstan/phpstan.git", "url": "https://github.com/phpstan/phpstan.git",
"reference": "7d08f569e582ade182a375c366cbd896eccadd3a" "reference": "64ae44e48214f3deebdaeebf2694297a10a2bea9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/7d08f569e582ade182a375c366cbd896eccadd3a", "url": "https://api.github.com/repos/phpstan/phpstan/zipball/64ae44e48214f3deebdaeebf2694297a10a2bea9",
"reference": "7d08f569e582ade182a375c366cbd896eccadd3a", "reference": "64ae44e48214f3deebdaeebf2694297a10a2bea9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2959,7 +2959,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-01-21T14:54:06+00:00" "time": "2025-02-07T15:05:24+00:00"
} }
], ],
"aliases": [], "aliases": [],

View file

@ -1,7 +1,6 @@
<?php <?php
namespace Misuzu\Users; namespace Misuzu\Users;
use Carbon\CarbonImmutable;
use Index\Db\DbResult; use Index\Db\DbResult;
class UserBirthdateInfo { class UserBirthdateInfo {
@ -24,8 +23,4 @@ class UserBirthdateInfo {
public string $birthdate { public string $birthdate {
get => sprintf('%04d-%02d-%02d', $this->year ?? 0, $this->month, $this->day); get => sprintf('%04d-%02d-%02d', $this->year ?? 0, $this->month, $this->day);
} }
public CarbonImmutable $bornAt {
get => CarbonImmutable::createFromTimestampUTC('Y-m-d', $this->birthdate, 'UTC');
}
} }