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 5, 2024
1 parent bebe1a4 commit a49b84e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 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
6 changes: 0 additions & 6 deletions src/bundle/Core/Resources/config/routing/serializers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ services:
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\MapNormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\URITextNormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\HostTextNormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\RegexURINormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\RegexHostNormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\RegexNormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\URIElementNormalizer'
- '@Ibexa\Core\MVC\Symfony\Component\Serializer\SimplifiedRequestNormalizer'
Expand Down Expand Up @@ -45,10 +43,6 @@ services:

Ibexa\Core\MVC\Symfony\Component\Serializer\HostTextNormalizer: ~

Ibexa\Core\MVC\Symfony\Component\Serializer\RegexURINormalizer: ~

Ibexa\Core\MVC\Symfony\Component\Serializer\RegexHostNormalizer: ~

Ibexa\Core\MVC\Symfony\Component\Serializer\RegexNormalizer: ~

Ibexa\Core\MVC\Symfony\Component\Serializer\URIElementNormalizer: ~
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 a49b84e

Please sign in to comment.