Skip to content

Commit

Permalink
Ignore new PHPStan error
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Dec 27, 2023
1 parent 85ce805 commit c89876d
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 @@ -22,7 +22,7 @@
"symfony/console": "^6.2|^7.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpstan/phpstan": "^1.11",
"pestphp/pest": "^2.3",
"mockery/mockery": "^1.5",
"phpstan/phpstan-mockery": "^1.1"
Expand Down
2 changes: 1 addition & 1 deletion src/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Progress extends Prompt
*/
public function __construct(public string $label, public iterable|int $steps, public string $hint = '')
{
$this->total = match (true) {
$this->total = match (true) { // @phpstan-ignore assign.propertyType
is_int($this->steps) => $this->steps,
is_countable($this->steps) => count($this->steps),
is_iterable($this->steps) => iterator_count($this->steps),
Expand Down

0 comments on commit c89876d

Please sign in to comment.