Skip to content

Commit 84075ce

Browse files
committed
Fix PHPStan issues
1 parent 5b040a2 commit 84075ce

File tree

2 files changed

+2
-38
lines changed

2 files changed

+2
-38
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ parameters:
7575
count: 1
7676
path: src/Controller/Admin/BlogController.php
7777

78-
-
79-
message: "#^Parameter \\#1 \\$author of method App\\\\Entity\\\\Post\\:\\:setAuthor\\(\\) expects App\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#"
80-
count: 1
81-
path: src/Controller/Admin/BlogController.php
82-
8378
-
8479
message: "#^Parameter \\#2 \\$token of method Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\AbstractController\\:\\:isCsrfTokenValid\\(\\) expects string\\|null, bool\\|float\\|int\\|string\\|null given\\.$#"
8580
count: 1
@@ -95,11 +90,6 @@ parameters:
9590
count: 1
9691
path: src/Controller/BlogController.php
9792

98-
-
99-
message: "#^Parameter \\#1 \\$author of method App\\\\Entity\\\\Comment\\:\\:setAuthor\\(\\) expects App\\\\Entity\\\\User, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#"
100-
count: 1
101-
path: src/Controller/BlogController.php
102-
10393
-
10494
message: "#^Parameter \\#1 \\$query of method App\\\\Repository\\\\PostRepository\\:\\:findBySearchQuery\\(\\) expects string, bool\\|float\\|int\\|string\\|null given\\.$#"
10595
count: 1
@@ -120,16 +110,6 @@ parameters:
120110
count: 1
121111
path: src/Controller/BlogController.php
122112

123-
-
124-
message: "#^Cannot call method setPassword\\(\\) on Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null\\.$#"
125-
count: 1
126-
path: src/Controller/UserController.php
127-
128-
-
129-
message: "#^Parameter \\#1 \\$user of method Symfony\\\\Component\\\\PasswordHasher\\\\Hasher\\\\UserPasswordHasherInterface\\:\\:hashPassword\\(\\) expects Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\PasswordAuthenticatedUserInterface, Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserInterface\\|null given\\.$#"
130-
count: 1
131-
path: src/Controller/UserController.php
132-
133113
-
134114
message: "#^Parameter \\#2 \\$plainPassword of method Symfony\\\\Component\\\\PasswordHasher\\\\Hasher\\\\UserPasswordHasherInterface\\:\\:hashPassword\\(\\) expects string, mixed given\\.$#"
135115
count: 1
@@ -255,21 +235,6 @@ parameters:
255235
count: 1
256236
path: src/Form/DataTransformer/TagArrayToStringTransformer.php
257237

258-
-
259-
message: "#^Parameter \\#1 \\$string of function Symfony\\\\Component\\\\String\\\\u expects string\\|null, mixed given\\.$#"
260-
count: 2
261-
path: src/Form/DataTransformer/TagArrayToStringTransformer.php
262-
263-
-
264-
message: "#^Parameter \\#2 \\$array of function implode expects array\\<string\\>, mixed given\\.$#"
265-
count: 1
266-
path: src/Form/DataTransformer/TagArrayToStringTransformer.php
267-
268-
-
269-
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, mixed given\\.$#"
270-
count: 1
271-
path: src/Form/DataTransformer/TagArrayToStringTransformer.php
272-
273238
-
274239
message: "#^Parameter \\#1 \\$format of method App\\\\Utils\\\\MomentFormatConverter\\:\\:convert\\(\\) expects string, mixed given\\.$#"
275240
count: 1

src/Form/DataTransformer/TagArrayToStringTransformer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424
*
2525
* @author Yonel Ceruto <[email protected]>
2626
* @author Jonathan Boyer <[email protected]>
27+
*
28+
* @template-implements DataTransformerInterface<Tag[], string>
2729
*/
2830
class TagArrayToStringTransformer implements DataTransformerInterface
2931
{
30-
/**
31-
* @template-implements DataTransformerInterface<Tag[], string>
32-
*/
3332
public function __construct(
3433
private TagRepository $tags
3534
) {

0 commit comments

Comments
 (0)