Bump PHPStan to level 9
This commit is contained in:
parent
9abfb29af7
commit
f21bb125c5
6 changed files with 24 additions and 3 deletions
|
@ -8,7 +8,7 @@ use Twig\TwigFunction;
|
|||
|
||||
class ExperienceTwigExtension extends AbstractExtension
|
||||
{
|
||||
private static $startYear = 2007;
|
||||
private static int $startYear = 2007;
|
||||
|
||||
public function getFunctions(): array
|
||||
{
|
||||
|
@ -24,6 +24,6 @@ class ExperienceTwigExtension extends AbstractExtension
|
|||
|
||||
public function getYearsOfExperience(): int
|
||||
{
|
||||
return (new \DateTimeImmutable())->format('Y') - self::$startYear;
|
||||
return (int) (new \DateTimeImmutable())->format('Y') - self::$startYear;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue