Skip to content

Commit

Permalink
Merge pull request #235 from thePanz/updarte-phpstan-level-6
Browse files Browse the repository at this point in the history
Fix phpstan issues, upgrade to latest phpstan release
  • Loading branch information
sprain committed Oct 12, 2023
2 parents 378ae01 + b40f143 commit 3a79742
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fpdf/fpdf": "^1.85",
"friendsofphp/php-cs-fixer": "^3.15",
"khanamiryan/qrcode-detector-decoder": "^1.0.3",
"phpstan/phpstan": "^1.2",
"phpstan/phpstan": "^1.10.37",
"setasign/fpdi": "^2.3.5",
"setasign/fpdf": "^1.8.2",
"tecnickcom/tcpdf": "^6.3.2"
Expand Down
17 changes: 10 additions & 7 deletions composer.lock

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

4 changes: 1 addition & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ parameters:
level: 6
paths:
- src/
ignoreErrors:
- '#Parameter \#1 \$h of method TCPDF::setCellHeightRatio\(\) expects int, float given\.#'
reportUnmatchedIgnoredErrors: false
reportUnmatchedIgnoredErrors: false
2 changes: 1 addition & 1 deletion src/QrBill.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private function getQrCodeContent(): string
}

/**
* @param list<QrCodeableInterface|list<QrCodeableInterface>> $elements
* @param list<QrCodeableInterface|AddressInterface|list<AddressInterface|QrCodeableInterface>> $elements
* @return list<string|int|null>
*/
private function extractQrCodeDataFromElements(array $elements): array
Expand Down

0 comments on commit 3a79742

Please sign in to comment.