Skip to content

Commit 1fb5548

Browse files
author
blacklizer
committed
add inherited return types
1 parent db6b470 commit 1fb5548

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ExpressionLanguage/PresetFunctionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(array $functions)
2424
/**
2525
* {@inheritDoc}
2626
*/
27-
public function getFunctions()
27+
public function getFunctions(): array
2828
{
2929
return array_map([ExpressionFunction::class, 'fromPhp'], $this->functions);
3030
}

Security/Voter/SuperUserRoleVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SuperUserRoleVoter implements VoterInterface
1515
/**
1616
* {@inheritdoc}
1717
*/
18-
public function vote(TokenInterface $token, $object, array $attributes)
18+
public function vote(TokenInterface $token, $subject, array $attributes): int
1919
{
2020
return $this->hasSuperUserRole($token) ? VoterInterface::ACCESS_GRANTED : VoterInterface::ACCESS_ABSTAIN;
2121
}

0 commit comments

Comments
 (0)