Skip to content

Commit 4da641b

Browse files
committed
can't make both phpstan and ecs happy with == vs ===;
1 parent 8e0e2a3 commit 4da641b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@ parameters:
4343
# another class with relationship to Element
4444
# src/phpDocumentor/Reflection/Php/ProjectFactory.php
4545
- '#Parameter \#1 \$file of method phpDocumentor\\Reflection\\Php\\Project::addFile\(\) expects phpDocumentor\\Reflection\\Php\\File, phpDocumentor\\Reflection\\Element given\.#'
46+
#
47+
#
48+
# until I can make $object arg ?$object...
49+
# src/phpDocumentor/Reflection/Php/Factory/DocBlock.php
50+
- '#Strict comparison using === between PhpParser\\Comment\\Doc and null will always evaluate to false\.#'

src/phpDocumentor/Reflection/Php/Factory/DocBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function matches($object): bool
6767
*/
6868
public function create($object, StrategyContainer $strategies, ?Context $context = null)
6969
{
70-
if ($object == null) {
70+
if ($object === null) {
7171
return null;
7272
}
7373

0 commit comments

Comments
 (0)