From 59c76c587ba5d496cc7da5e8e6ffbfac31090b1a Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Mon, 4 Nov 2024 14:35:50 +0100 Subject: [PATCH] Fixes after rebase --- phpstan-baseline.neon | 5 +++++ .../Symfony/EventListener/SiteAccessMatchListenerTest.php | 2 -- .../MVC/Symfony/SiteAccess/MatcherSerializationTest.php | 8 +++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index ad5d6741c4..d018de39ca 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -11085,6 +11085,11 @@ parameters: count: 1 path: src/lib/MVC/Symfony/EventListener/LanguageSwitchListener.php + - + message: "#^Parameter \\#1 \\$properties of class Ibexa\\\\Core\\\\MVC\\\\Symfony\\\\Routing\\\\SimplifiedRequest constructor expects array, string given\\.$#" + count: 1 + path: src/lib/MVC/Symfony/EventListener/SiteAccessMatchListener.php + - message: "#^Method Ibexa\\\\Core\\\\MVC\\\\Symfony\\\\ExpressionLanguage\\\\TwigVariableProviderExtension\\:\\:hasParameterProvider\\(\\) has parameter \\$variables with no value type specified in iterable type array\\.$#" count: 1 diff --git a/tests/lib/MVC/Symfony/EventListener/SiteAccessMatchListenerTest.php b/tests/lib/MVC/Symfony/EventListener/SiteAccessMatchListenerTest.php index 35c9c767b3..15ea203eb9 100644 --- a/tests/lib/MVC/Symfony/EventListener/SiteAccessMatchListenerTest.php +++ b/tests/lib/MVC/Symfony/EventListener/SiteAccessMatchListenerTest.php @@ -322,8 +322,6 @@ private function getSerializer(): SerializerInterface new HostElementNormalizer(), new URITextNormalizer(), new HostTextNormalizer(), - new RegexURINormalizer(), - new RegexHostNormalizer(), new RegexNormalizer(), new URIElementNormalizer(), new SimplifiedRequestNormalizer(), diff --git a/tests/lib/MVC/Symfony/SiteAccess/MatcherSerializationTest.php b/tests/lib/MVC/Symfony/SiteAccess/MatcherSerializationTest.php index 9bfb08753d..4a053016fc 100644 --- a/tests/lib/MVC/Symfony/SiteAccess/MatcherSerializationTest.php +++ b/tests/lib/MVC/Symfony/SiteAccess/MatcherSerializationTest.php @@ -115,13 +115,15 @@ public function matcherProvider(): iterable [ 'prefix' => 'foo', 'suffix' => 'bar', - ]), + ] + ), ]; yield 'URIElement' => [ - new Matcher\URIElement([ + new Matcher\URIElement( + [ 'elementNumber' => 2, ] - ), + ), ]; yield 'HostElement' => [ new Matcher\HostElement(