Skip to content

Commit 5886c20

Browse files
committed
Added proper PHPStan declaration to Ibexa\Contracts\Rest\Input\Parser::parse
1 parent 275fdd5 commit 5886c20

2 files changed

Lines changed: 1 addition & 77 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,6 @@ parameters:
280280
count: 1
281281
path: src/contracts/Input/Handler.php
282282

283-
-
284-
message: "#^Method Ibexa\\\\Contracts\\\\Rest\\\\Input\\\\Parser\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
285-
count: 1
286-
path: src/contracts/Input/Parser.php
287-
288283
-
289284
message: "#^Cannot access offset mixed on Ibexa\\\\Contracts\\\\Rest\\\\Input\\\\Parser\\.$#"
290285
count: 1
@@ -2115,31 +2110,16 @@ parameters:
21152110
count: 1
21162111
path: src/lib/Server/Input/Parser/Aggregation/AbstractRangeAggregationParser.php
21172112

2118-
-
2119-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\AbstractRangeAggregationParser\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2120-
count: 1
2121-
path: src/lib/Server/Input/Parser/Aggregation/AbstractRangeAggregationParser.php
2122-
21232113
-
21242114
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\AbstractRangeAggregationParser\\:\\:parseAggregation\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
21252115
count: 1
21262116
path: src/lib/Server/Input/Parser/Aggregation/AbstractRangeAggregationParser.php
21272117

2128-
-
2129-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\AbstractStatsAggregationParser\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2130-
count: 1
2131-
path: src/lib/Server/Input/Parser/Aggregation/AbstractStatsAggregationParser.php
2132-
21332118
-
21342119
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\AbstractStatsAggregationParser\\:\\:parseAggregation\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
21352120
count: 1
21362121
path: src/lib/Server/Input/Parser/Aggregation/AbstractStatsAggregationParser.php
21372122

2138-
-
2139-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\AbstractTermAggregationParser\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2140-
count: 1
2141-
path: src/lib/Server/Input/Parser/Aggregation/AbstractTermAggregationParser.php
2142-
21432123
-
21442124
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\AbstractTermAggregationParser\\:\\:parseAggregation\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
21452125
count: 1
@@ -2240,11 +2220,6 @@ parameters:
22402220
count: 1
22412221
path: src/lib/Server/Input/Parser/Aggregation/ObjectStateTermAggregationParser.php
22422222

2243-
-
2244-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\Range\\\\AbstractRangeParser\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2245-
count: 1
2246-
path: src/lib/Server/Input/Parser/Aggregation/Range/AbstractRangeParser.php
2247-
22482223
-
22492224
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Aggregation\\\\Range\\\\AbstractRangeParser\\:\\:visitRangeValue\\(\\) has no return type specified\\.$#"
22502225
count: 1
@@ -2415,16 +2390,6 @@ parameters:
24152390
count: 1
24162391
path: src/lib/Server/Input/Parser/Criterion/FullText.php
24172392

2418-
-
2419-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\IsUserBased\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2420-
count: 1
2421-
path: src/lib/Server/Input/Parser/Criterion/IsUserBased.php
2422-
2423-
-
2424-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\IsUserEnabled\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2425-
count: 1
2426-
path: src/lib/Server/Input/Parser/Criterion/IsUserEnabled.php
2427-
24282393
-
24292394
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\LanguageCode\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
24302395
count: 1
@@ -2495,11 +2460,6 @@ parameters:
24952460
count: 1
24962461
path: src/lib/Server/Input/Parser/Criterion/ObjectStateId.php
24972462

2498-
-
2499-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\ObjectStateIdentifier\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2500-
count: 1
2501-
path: src/lib/Server/Input/Parser/Criterion/ObjectStateIdentifier.php
2502-
25032463
-
25042464
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\Operator\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
25052465
count: 1
@@ -2525,41 +2485,16 @@ parameters:
25252485
count: 1
25262486
path: src/lib/Server/Input/Parser/Criterion/SectionId.php
25272487

2528-
-
2529-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\SectionIdentifier\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2530-
count: 1
2531-
path: src/lib/Server/Input/Parser/Criterion/SectionIdentifier.php
2532-
2533-
-
2534-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\Sibling\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2535-
count: 1
2536-
path: src/lib/Server/Input/Parser/Criterion/Sibling.php
2537-
25382488
-
25392489
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\Subtree\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
25402490
count: 1
25412491
path: src/lib/Server/Input/Parser/Criterion/Subtree.php
25422492

2543-
-
2544-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\UserEmail\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2545-
count: 1
2546-
path: src/lib/Server/Input/Parser/Criterion/UserEmail.php
2547-
2548-
-
2549-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\UserId\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2550-
count: 1
2551-
path: src/lib/Server/Input/Parser/Criterion/UserId.php
2552-
25532493
-
25542494
message: "#^Parameter \\#1 \\$value of class Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Query\\\\Criterion\\\\UserId constructor expects array\\<int\\>\\|int, array\\<int, string\\> given\\.$#"
25552495
count: 1
25562496
path: src/lib/Server/Input/Parser/Criterion/UserId.php
25572497

2558-
-
2559-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\UserLogin\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2560-
count: 1
2561-
path: src/lib/Server/Input/Parser/Criterion/UserLogin.php
2562-
25632498
-
25642499
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Criterion\\\\UserMetadata\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
25652500
count: 1
@@ -2630,11 +2565,6 @@ parameters:
26302565
count: 1
26312566
path: src/lib/Server/Input/Parser/FieldDefinitionUpdate.php
26322567

2633-
-
2634-
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\JWTInput\\:\\:parse\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
2635-
count: 1
2636-
path: src/lib/Server/Input/Parser/JWTInput.php
2637-
26382568
-
26392569
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Input\\\\Parser\\\\Limitation\\\\PathStringRouteBasedLimitationParser\\:\\:parseIdFromHref\\(\\) has parameter \\$limitationValue with no type specified\\.$#"
26402570
count: 1
@@ -3585,11 +3515,6 @@ parameters:
35853515
count: 1
35863516
path: src/lib/Server/Output/ValueObjectVisitor/Trash.php
35873517

3588-
-
3589-
message: "#^Access to protected property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\URLAlias\\:\\:\\$languageCodes\\.$#"
3590-
count: 1
3591-
path: src/lib/Server/Output/ValueObjectVisitor/URLAlias.php
3592-
35933518
-
35943519
message: "#^Method Ibexa\\\\Rest\\\\Server\\\\Output\\\\ValueObjectVisitor\\\\URLAlias\\:\\:visit\\(\\) has no return type specified\\.$#"
35953520
count: 1

src/contracts/Input/Parser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ abstract class Parser
1414
/**
1515
* Parse input structure.
1616
*
17-
* @param array $data
18-
* @param \Ibexa\Contracts\Rest\Input\ParsingDispatcher $parsingDispatcher
17+
* @param array<mixed> $data
1918
*
2019
* @return \Ibexa\Contracts\Core\Repository\Values\ValueObject|object
2120
*/

0 commit comments

Comments
 (0)