Skip to content

Commit

Permalink
update phpstan and fix codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Sep 3, 2024
1 parent afe590e commit 423b2bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ function fingerprint(callable $callback, /* string */ $id = null, /* string */ $
if (null === $fingerprint && null === $id) {
throw new \LogicException('You must provide "id" and "fingerprint" argument.');
}
// @phpstan-ignore function.impossibleType
if (\is_bool($fingerprint)) {
trigger_deprecation('castor/castor', '0.18.0', 'since 0.18 fingerprint functions require an "id" and "fingerprint" argument.');

Expand Down
2 changes: 1 addition & 1 deletion tools/phpstan/castor.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
function phpstan(bool $generateBaseline = false): int
{
$command = [
__DIR__ . '/vendor/bin/phpstan',
__DIR__ . '/vendor/bin/phpstan', '-v',
];

if ($generateBaseline) {
Expand Down
2 changes: 1 addition & 1 deletion tools/phpstan/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "project",
"license": "MIT",
"require": {
"phpstan/phpstan": "^1.11.10"
"phpstan/phpstan": "^1.12.0"
},
"config": {
"platform": {
Expand Down
12 changes: 6 additions & 6 deletions tools/phpstan/composer.lock

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

0 comments on commit 423b2bb

Please sign in to comment.