Skip to content

Commit 65cecab

Browse files
Add typehints to flatten exception.
This makes the PHPStan baseline empty πŸŽ‰.
1 parent 7f71790 commit 65cecab

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

β€Žphpstan-baseline.neon

Lines changed: 0 additions & 11 deletions
This file was deleted.

β€Žphpstan.dist.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ parameters:
2222
message: "#Method .* return type has no value type specified in iterable type array#"
2323
path: webapp/src/DataFixtures/Test
2424
includes:
25-
- phpstan-baseline.neon
2625
- lib/vendor/phpstan/phpstan-doctrine/extension.neon

β€Žwebapp/src/FosRestBundle/FlattenExceptionHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public static function getSubscribingMethods(): array
3838
];
3939
}
4040

41+
/**
42+
* @param array{params: string[]} $type
43+
*
44+
* @return array{code: int, message: string}
45+
*/
4146
public function serializeToJson(
4247
JsonSerializationVisitor $visitor,
4348
FlattenException $exception,

0 commit comments

Comments
Β (0)