Skip to content

Commit

Permalink
Add phpstan-strict-rules (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
BolZer authored Oct 25, 2024
1 parent 2e36bcd commit d8d224f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"friendsofphp/php-cs-fixer": "^3.16",
"phpstan/phpstan": "^1.10",
"rector/rector": "^1.0",
"symfony/finder": "^5.4"
"symfony/finder": "^5.4",
"phpstan/phpstan-strict-rules": "^1.5"
},
"autoload": {
"psr-4": {
Expand Down
51 changes: 50 additions & 1 deletion composer.lock

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

3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: max
paths:
Expand Down
2 changes: 1 addition & 1 deletion tests/zugferd2/Tests/Legacy/TradeAccountingAccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testTradeAccountingAccount(): void
</rsm:SupplyChainTradeTransaction>
</rsm:CrossIndustryInvoice>
XML;
$this->assertEquals(
self::assertEquals(
// Removes white-space
preg_replace('/\s/', '', $xml),
preg_replace('/\s/', '', Builder::create()->transform($invoice))
Expand Down

0 comments on commit d8d224f

Please sign in to comment.