8000 Merge branch '5.4' into 6.3 · symfony/symfony@69e1254 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69e1254

Browse files
Merge branch '5.4' into 6.3
* 5.4: harden LockRegistry tests, consider PHP files only Psalm: Suppress UnusedConstructor errors
2 parents bbb5f5c + c43dcc6 commit 69e1254

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

psalm.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@
3838
<referencedClass name="ReflectionIntersectionType"/>
3939
<referencedClass name="UnitEnum"/>
4040
</errorLevel>
41-
</UndefinedDocblockClass>
41+
</UndefinedDocblockClass>
42+
<UnusedConstructor>
43+
<errorLevel type="suppress">
44+
<!--
45+
We use private constructors to avoid instantiation.
46+
This kind of error is bogus in most cases.
47+
-->
48+
<directory name="src/Symfony" />
49+
</errorLevel>
50+
</UnusedConstructor>
4251
<UndefinedAttributeClass>
4352
<errorLevel type="suppress">
4453
<!-- These classes have been added in PHP 8.2 -->

src/Symfony/Component/Cache/Tests/LockRegistryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testFiles()
2323
}
2424
$lockFiles = LockRegistry::setFiles([]);
2525
LockRegistry::setFiles($lockFiles);
26-
$expected = array_map('realpath', glob(__DIR__.'/../Adapter/*'));
26+
$expected = array_map('realpath', glob(__DIR__.'/../Adapter/*.php'));
2727
$this->assertSame($expected, $lockFiles);
2828
}
2929
}

0 commit comments

Comments
 (0)
0