Skip to content

Commit df4b1b5

Browse files
committed
Fix static analisys
1 parent 4f00d4a commit df4b1b5

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

phpstan.neon

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ parameters:
22
paths:
33
- src
44

5-
checkGenericClassInNonGenericObjectType: false
65
level: max
76
ignoreErrors:
87

src/php-parser/Modifiers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use function strpos;
1010

11-
if (strpos(InstalledVersions::getVersion('nikic/php-parser'), '4') === 0) {
11+
if (strpos(InstalledVersions::getVersion('nikic/php-parser') ?? '', '4') === 0) {
1212
/**
1313
* Modifiers used (as a bit mask) by various flags subnodes, for example on classes, functions,
1414
* properties and constants.

src/phpDocumentor/Reflection/NodeVisitor/ElementNameResolver.php

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
final class ElementNameResolver extends NodeVisitorAbstract
3636
{
37+
/** @var SplDoublyLinkedList<Node\Identifier|string|null> */
3738
private SplDoublyLinkedList $parts;
3839

3940
public function __construct()

0 commit comments

Comments
 (0)