diff --git a/src/Symfony/Component/BrowserKit/Tests/ClassThatInheritClient.php b/src/Symfony/Component/BrowserKit/Tests/ClassThatInheritClient.php index 9f6a55ae9d..9b44547204 100644 --- a/src/Symfony/Component/BrowserKit/Tests/ClassThatInheritClient.php +++ b/src/Symfony/Component/BrowserKit/Tests/ClassThatInheritClient.php @@ -37,7 +37,10 @@ class ClassThatInheritClient extends AbstractBrowser return $response; } - public function submit(DomCrawlerForm $form, array $values = []): Crawler + /** + * @param array $serverParameters + */ + public function submit(DomCrawlerForm $form, array $values = []/*, array $serverParameters = []*/): Crawler { return parent::submit($form, $values); } diff --git a/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php b/src/Symfony/Component/HttpKernel/Tests/EventListener/ExceptionListenerTest.php index 4ec530b7f8..4a24066b2c 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(Request $request = null) + public function countErrors(Request $request = null): int { return \count($this->logs['critical']); }