File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 44
44
use function version_compare ;
45
45
use DOMDocument ;
46
46
use DOMElement ;
47
+ use DOMNode ;
47
48
use DOMNodeList ;
48
49
use DOMXPath ;
49
50
use LibXMLError ;
@@ -346,6 +347,8 @@ public function getPHPConfiguration(): array
346
347
];
347
348
348
349
foreach ($ this ->xpath ->query ('php/includePath ' ) as $ includePath ) {
350
+ assert ($ includePath instanceof DOMNode);
351
+
349
352
$ path = (string ) $ includePath ->textContent ;
350
353
351
354
if ($ path ) {
@@ -1143,6 +1146,8 @@ private function readFilterFiles(string $query): array
1143
1146
$ files = [];
1144
1147
1145
1148
foreach ($ this ->xpath ->query ($ query ) as $ file ) {
1149
+ assert ($ file instanceof DOMNode);
1150
+
1146
1151
$ filePath = (string ) $ file ->textContent ;
1147
1152
1148
1153
if ($ filePath ) {
@@ -1199,10 +1204,14 @@ private function parseGroupConfiguration(string $root): array
1199
1204
];
1200
1205
1201
1206
foreach ($ this ->xpath ->query ($ root . '/include/group ' ) as $ group ) {
1207
+ assert ($ group instanceof DOMNode);
1208
+
1202
1209
$ groups ['include ' ][] = (string ) $ group ->textContent ;
1203
1210
}
1204
1211
1205
1212
foreach ($ this ->xpath ->query ($ root . '/exclude/group ' ) as $ group ) {
1213
+ assert ($ group instanceof DOMNode);
1214
+
1206
1215
$ groups ['exclude ' ][] = (string ) $ group ->textContent ;
1207
1216
}
1208
1217
You can’t perform that action at this time.
0 commit comments