From 592aacff6f69f55c8b8121b044586a59f66ff72f Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 5 Sep 2019 23:16:58 +0200 Subject: [PATCH] Fix test fixtures with deprecated method signatures. --- .../HttpKernel/Tests/EventListener/ExceptionListenerTest.php | 2 +- .../Tests/Authentication/AuthenticationTrustResolverTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php index 2048fdd01c..4ec530b7f8 100644 --- a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php @@ -159,7 +159,7 @@ class ExceptionListenerTest extends TestCase class TestLogger extends Logger implements DebugLoggerInterface { - public function countErrors() + public function countErrors(Request $request = null) { return \count($this->logs['critical']); } diff --git a/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php index 940dcaffaa..3027d396cd 100644 --- a/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php @@ -172,6 +172,10 @@ class FakeCustomToken implements TokenInterface { } + public function getRoleNames(): array + { + } + public function getCredentials() { }