Skip to content

Commit

Permalink
Fixed SimpleXMLElement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 16, 2020
1 parent a4038b2 commit af5921e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -23,7 +23,7 @@
"nette/utils": "^3.1.3",
"nikic/php-parser": "4.10.2",
"ondram/ci-detector": "^3.4.0",
"ondrejmirtes/better-reflection": "4.3.36",
"ondrejmirtes/better-reflection": "4.3.37",
"phpdocumentor/reflection-docblock": "4.3.4",
"phpstan/php-8-stubs": "^0.1.4",
"phpstan/phpdoc-parser": "^0.4.9",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -43,4 +43,9 @@ public function testBug3469(): void
$this->analyse([__DIR__ . '/data/bug-3469.php'], []);
}

public function testBug3958(): void
{
$this->analyse([__DIR__ . '/data/bug-3958.php'], []);
}

}
7 changes: 7 additions & 0 deletions tests/PHPStan/Rules/Methods/data/bug-3958.php
@@ -0,0 +1,7 @@
<?php

namespace Bug3958;

final class XmlHelper extends \SimpleXMLElement
{
}

0 comments on commit af5921e

Please sign in to comment.