bug #39247 [Security] remove return type definition in order to avoid type juggling (adeptofvoltron)

This PR was merged into the 4.4 branch.

Discussion
----------

[Security] remove return type definition in order to avoid type juggling

| Q             | A
| ------------- | ---
| Branch?       |4.4 <!-- see below -->
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #39205  <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
-->
Everything described with details inrelated ticket

Commits
-------

668431fc09 remove return type definition in order to avoid type juggling
This commit is contained in:
Robin Chalas 2020-11-30 18:58:27 +01:00
commit 27127a4bab
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class TraceableVoter implements VoterInterface
}
}
public function vote(TokenInterface $token, $subject, array $attributes): int
public function vote(TokenInterface $token, $subject, array $attributes)
{
$result = $this->voter->vote($token, $subject, $attributes);