Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Nov 4, 2024
1 parent bebe1a4 commit 4b8c67d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
use Ibexa\Core\MVC\Symfony\Component\Serializer\HostTextNormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\MapNormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\MatcherDenormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\RegexHostNormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\RegexNormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\RegexURINormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\SimplifiedRequestNormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\SiteAccessNormalizer;
use Ibexa\Core\MVC\Symfony\Component\Serializer\URIElementNormalizer;
Expand Down Expand Up @@ -322,8 +320,6 @@ private function getSerializer(): SerializerInterface
new HostElementNormalizer(),
new URITextNormalizer(),
new HostTextNormalizer(),
new RegexURINormalizer(),
new RegexHostNormalizer(),
new RegexNormalizer(),
new URIElementNormalizer(),
new SimplifiedRequestNormalizer(),
Expand Down
8 changes: 5 additions & 3 deletions tests/lib/MVC/Symfony/SiteAccess/MatcherSerializationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4b8c67d

Please sign in to comment.