Skip to content

[3.4] Fix return types declarations #33332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Aug 26, 2019
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ef5ead0
[HttpFoundation] fix return type declarations
nicolas-grekas Aug 21, 2019
c1b7118
[Routing] Fix return type declarations
derrabus Aug 23, 2019
e0d79f7
[Security] Fix return type declarations
derrabus Aug 23, 2019
05fe553
[HttpKernel] Fix return type declarations
nicolas-grekas Aug 23, 2019
9c63be4
[Config] fix return type declarations
derrabus Aug 23, 2019
ca1fad4
[DI] fix return type declarations
derrabus Aug 23, 2019
70feaa4
[Translation] fix return type declarations
derrabus Aug 23, 2019
5072cfc
[Serializer] fix return type declarations
derrabus Aug 23, 2019
5f9aaa7
[Cache] fix return type declarations
nicolas-grekas Aug 24, 2019
28646c7
[Workflow] fix return type declarations
nicolas-grekas Aug 24, 2019
6af0c80
[Process] fix return type declarations
nicolas-grekas Aug 24, 2019
2ea98bb
[Validator] fix return type declarations
nicolas-grekas Aug 24, 2019
2b8ef1d
[DomCrawler] fix return type declarations
nicolas-grekas Aug 24, 2019
73f504c
[Templating] fix return type declarations
nicolas-grekas Aug 24, 2019
523e9b9
[Intl] fix return type declarations
nicolas-grekas Aug 24, 2019
a32a713
[Console] fix return type declarations
nicolas-grekas Aug 24, 2019
8706f18
[Form] fix return type declarations
nicolas-grekas Aug 24, 2019
5f3b4b6
[Bridge/Doctrine] fix return type declarations
nicolas-grekas Aug 24, 2019
07405e2
[PropertyInfo] fix return type declarations
nicolas-grekas Aug 25, 2019
c1d7a88
[BrowserKit] fix return type declarations
nicolas-grekas Aug 25, 2019
2ceb453
[SecurityBundle] fix return type declarations
nicolas-grekas Aug 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Workflow] fix return type declarations
  • Loading branch information
nicolas-grekas committed Aug 26, 2019
commit 28646c7f9bb1dc0b2fc05ab469a4acb026629492
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\Role\RoleHierarchy;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Workflow\Event\GuardEvent;
use Symfony\Component\Workflow\EventListener\ExpressionLanguage;
Expand Down Expand Up @@ -41,7 +44,8 @@ protected function setUp()
$this->authenticationChecker = $this->getMockBuilder(AuthorizationCheckerInterface::class)->getMock();
$trustResolver = $this->getMockBuilder(AuthenticationTrustResolverInterface::class)->getMock();
$this->validator = $this->getMockBuilder(ValidatorInterface::class)->getMock();
$this->listener = new GuardListener($this->configuration, $expressionLanguage, $tokenStorage, $this->authenticationChecker, $trustResolver, null, $this->validator);
$roleHierarchy = new RoleHierarchy([]);
$this->listener = new GuardListener($this->configuration, $expressionLanguage, $tokenStorage, $this->authenticationChecker, $trustResolver, $roleHierarchy, $this->validator);
}

protected function tearDown()
Expand Down Expand Up @@ -170,7 +174,7 @@ private function configureValidator($isUsed, $valid = true)
$this->validator
->expects($this->once())
->method('validate')
->willReturn($valid ? [] : ['a violation'])
->willReturn(new ConstraintViolationList($valid ? [] : [new ConstraintViolation('a violation', null, [], '', null, '')]))
;
}
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy