Skip to content

Commit 36667b1

Browse files
Merge branch '10.5'
2 parents 0bd4280 + 7fc1b6b commit 36667b1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.psalm/baseline.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
2+
<files psalm-version="5.17.0@c620f6e80d0abfca532b00bda366062aaedf6e5d">
33
<file src="src/Event/Dispatcher/DirectDispatcher.php">
44
<UndefinedInterfaceMethod>
55
<code>notify</code>
@@ -909,6 +909,11 @@
909909
<code>removeChild</code>
910910
</PossiblyNullReference>
911911
</file>
912+
<file src="src/TextUI/Configuration/Xml/Migration/Migrations/MoveCoverageDirectoriesToSource.php">
913+
<InvalidArgument>
914+
<code><![CDATA[$xpath->query('//coverage/' . $element)]]></code>
915+
</InvalidArgument>
916+
</file>
912917
<file src="src/TextUI/Configuration/Xml/Migration/Migrations/RemoveEmptyFilter.php">
913918
<PossiblyNullReference>
914919
<code>removeChild</code>

src/TextUI/Configuration/Xml/Loader.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use function trim;
2727
use DOMDocument;
2828
use DOMElement;
29+
use DOMNode;
2930
use DOMXPath;
3031
use PHPUnit\Runner\TestSuiteSorter;
3132
use PHPUnit\Runner\Version;
@@ -500,6 +501,8 @@ private function readFilterFiles(string $filename, DOMXPath $xpath, string $quer
500501
$files = [];
501502

502503
foreach ($xpath->query($query) as $file) {
504+
assert($file instanceof DOMNode);
505+
503506
$filePath = $file->textContent;
504507

505508
if ($filePath) {
@@ -516,10 +519,14 @@ private function groups(DOMXPath $xpath): Groups
516519
$exclude = [];
517520

518521
foreach ($xpath->query('groups/include/group') as $group) {
522+
assert($group instanceof DOMNode);
523+
519524
$include[] = new Group($group->textContent);
520525
}
521526

522527
foreach ($xpath->query('groups/exclude/group') as $group) {
528+
assert($group instanceof DOMNode);
529+
523530
$exclude[] = new Group($group->textContent);
524531
}
525532

@@ -585,6 +592,8 @@ private function php(string $filename, DOMXPath $xpath): Php
585592
$includePaths = [];
586593

587594
foreach ($xpath->query('php/includePath') as $includePath) {
595+
assert($includePath instanceof DOMNode);
596+
588597
$path = $includePath->textContent;
589598

590599
if ($path) {

0 commit comments

Comments
 (0)