Skip to content

Commit

Permalink
Fixed PHPUnit deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed May 18, 2021
1 parent b7159a5 commit 98c4a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"require-dev": {
"phpstan/phpstan": "0.12.85",
"irstea/phpunit-shim": "^7.5 || ^8.0",
"irstea/phpunit-shim": "^9.5",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-strict-rules": "^0.12.4"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tag/CompoundTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testIteration() : void{
*/
foreach($tag as $name => $value){
// we used to get other stuff when iterating, like the tag's __name property (before Iterator was implemented by CompoundTag)
self::assertRegExp('/hello[0-9]/', $name);
self::assertMatchesRegularExpression('/hello[0-9]/', $name);
self::assertInstanceOf(StringTag::class, $value);
++$count;
}
Expand Down

0 comments on commit 98c4a04

Please sign in to comment.