Skip to content

Commit b9f1582

Browse files
Aligned PHPStan baseline and updated Symfony deprecations helper setting (#426)
For more details see #426 Key changes: * Fixed PHPStan issue * [Tests] Increased max deprecation number after Symfony release --------- Co-authored-by: Andrew Longosz <[email protected]>
1 parent 6759bf7 commit b9f1582

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

phpstan-baseline-gte-8.0.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ parameters:
7171
path: src/bundle/Core/Imagine/IORepositoryResolver.php
7272

7373
-
74-
message: "#^Method Ibexa\\\\Bundle\\\\Core\\\\URLChecker\\\\Handler\\\\HTTPHandler\\:\\:createCurlHandlerForUrl\\(\\) should return resource but returns CurlHandle\\.$#"
74+
message: "#^Method Ibexa\\\\Bundle\\\\Core\\\\URLChecker\\\\Handler\\\\HTTPHandler\\:\\:createCurlHandlerForUrl\\(\\) should return resource but returns \\(CurlHandle\\|false\\)\\.$#"
7575
count: 1
7676
path: src/bundle/Core/URLChecker/Handler/HTTPHandler.php
7777

phpstan-baseline.neon

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9675,11 +9675,6 @@ parameters:
96759675
count: 2
96769676
path: src/lib/FieldType/Keyword/KeywordStorage/Gateway/DoctrineStorage.php
96779677

9678-
-
9679-
message: "#^Cannot call method fetchFirstColumn\\(\\) on Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\Result\\|int\\|string\\.$#"
9680-
count: 1
9681-
path: src/lib/FieldType/Keyword/KeywordStorage/Gateway/DoctrineStorage.php
9682-
96839678
-
96849679
message: "#^Method Ibexa\\\\Core\\\\FieldType\\\\Keyword\\\\KeywordStorage\\\\Gateway\\\\DoctrineStorage\\:\\:assignKeywords\\(\\) has parameter \\$keywordMap with no value type specified in iterable type array\\.$#"
96859680
count: 1
@@ -10275,11 +10270,6 @@ parameters:
1027510270
count: 3
1027610271
path: src/lib/FieldType/Url/UrlStorage/Gateway/DoctrineStorage.php
1027710272

10278-
-
10279-
message: "#^Cannot call method fetchFirstColumn\\(\\) on Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\Result\\|int\\|string\\.$#"
10280-
count: 1
10281-
path: src/lib/FieldType/Url/UrlStorage/Gateway/DoctrineStorage.php
10282-
1028310273
-
1028410274
message: "#^Method Ibexa\\\\Core\\\\FieldType\\\\Url\\\\UrlStorage\\\\Gateway\\\\DoctrineStorage\\:\\:getIdUrlMap\\(\\) return type has no value type specified in iterable type array\\.$#"
1028510275
count: 1
@@ -16430,11 +16420,6 @@ parameters:
1643016420
count: 12
1643116421
path: src/lib/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php
1643216422

16433-
-
16434-
message: "#^Cannot call method fetchFirstColumn\\(\\) on Doctrine\\\\DBAL\\\\ForwardCompatibility\\\\Result\\|int\\|string\\.$#"
16435-
count: 1
16436-
path: src/lib/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php
16437-
1643816423
-
1643916424
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\Location\\\\Gateway\\\\DoctrineDatabase\\:\\:addSort\\(\\) has parameter \\$languageSettings with no value type specified in iterable type array\\.$#"
1644016425
count: 1

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
<php>
1313
<ini name="error_reporting" value="-1" />
14-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[total]=576&amp;verbose=0"/>
14+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[total]=631&amp;verbose=0"/>
1515
</php>
1616
<testsuites>
1717
<testsuite name="unit_core">

0 commit comments

Comments
 (0)