We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a653302 commit c5d3542Copy full SHA for c5d3542
src/TextUI/XmlConfiguration/Migration/Migrations/RemoveLogTypes.php
@@ -9,6 +9,7 @@
9
*/
10
namespace PHPUnit\TextUI\XmlConfiguration;
11
12
+use function assert;
13
use DOMDocument;
14
use DOMElement;
15
use PHPUnit\Util\Xml\SnapshotNodeList;
@@ -27,6 +28,8 @@ public function migrate(DOMDocument $document): void
27
28
}
29
30
foreach (SnapshotNodeList::fromNodeList($logging->getElementsByTagName('log')) as $logNode) {
31
+ assert($logNode instanceof DOMElement);
32
+
33
switch ($logNode->getAttribute('type')) {
34
case 'json':
35
case 'tap':
0 commit comments