Skip to content

Commit

Permalink
Upgrading to Rector 1
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Nov 21, 2024
1 parent c7bf693 commit 2f2ac99
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 @@ -21,7 +21,7 @@
"laravel/pint": "^1.13",
"pestphp/pest": "^2.0",
"phpstan/phpstan": "^1.3",
"rector/rector": "^0.18.5"
"rector/rector": "^1"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Stat.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function mean(array $data): int|float|null
throw new InvalidDataInputException('The data must not be empty.');
}
// @phpstan-ignore-next-line
if (!empty(array_filter($data, 'is_string'))) {
if (array_filter($data, 'is_string') !== []) {
throw new InvalidDataInputException('The data array contains a string.');
}
$sum = array_sum($data);
Expand Down

0 comments on commit 2f2ac99

Please sign in to comment.