File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
parameters :
2
2
level : 7
3
- checkGenericClassInNonGenericObjectType : false
4
3
paths :
5
4
- src
5
+ ignoreErrors :
6
+ -
7
+ identifier : missingType.generics
Original file line number Diff line number Diff line change @@ -44,7 +44,10 @@ public static function findClassName(?string $fileContent): ?string
44
44
45
45
$ namespace = null ;
46
46
if (preg_match ('#(^|\s)namespace(.*?)\s*;#sm ' , $ fileContent , $ m )) {
47
+ // @phpstan-ignore-next-line
47
48
$ namespace = $ m [2 ] ?? null ;
49
+
50
+ // @phpstan-ignore-next-line
48
51
$ namespace = $ namespace !== null ? trim ($ namespace ) : null ;
49
52
}
50
53
Original file line number Diff line number Diff line change @@ -151,7 +151,11 @@ public function register(): void
151
151
protected function buildRouteArgs (Route $ route ): array
152
152
{
153
153
$ actions = [];
154
- $ isDebug = $ this ->options ?->debug ?? false ;
154
+ $ isDebug = $ this ->options ?->debug;
155
+ if ($ isDebug === null ) {
156
+ $ isDebug = false ;
157
+ }
158
+
155
159
foreach ($ route ->actions as $ action ) {
156
160
$ actions [] = [
157
161
'methods ' => $ action ->methods ,
You can’t perform that action at this time.
0 commit comments