Skip to content

Commit

Permalink
adjust tests and tool settings so CI passes
Browse files Browse the repository at this point in the history
remove undefined assertIsResource from test

ignore 'Else branch is unreachable' message on old phpstan

lock php-cs-fixer to 3.63.2
  • Loading branch information
phil-davis committed Sep 6, 2024
1 parent e9eca39 commit fc72abd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.17.1||^3.63",
"friendsofphp/php-cs-fixer": "~2.17.1||3.63.2",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6"
},
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ parameters:
-
message: '!Parameter #3 \$namespace of method XMLWriter::startElementNs\(\) expects string, null given.!'
path: lib/Writer.php
-
message: '!Else branch is unreachable because previous condition is always true.!'
path: lib/Service.php
1 change: 0 additions & 1 deletion tests/Sabre/Xml/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ public function providesEmptyInput()
</root>
XML;
$stream = fopen('php://memory', 'r+');
self:assertIsResource($stream);
fwrite($stream, $xml);
rewind($stream);
fclose($stream);
Expand Down

0 comments on commit fc72abd

Please sign in to comment.