Skip to content

Commit

Permalink
Merge pull request #29 from bayareawebpro/dev
Browse files Browse the repository at this point in the history
Laravel 9
  • Loading branch information
bayareawebpro committed Feb 8, 2022
2 parents 07be2c0 + 2de7f30 commit 2a16c0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
],
"require": {
"php": "^7.4|^8.0",
"illuminate/http": "^6.0|^7.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0",
"illuminate/session": "^6.0|^7.0|^8.0",
"illuminate/contracts": "^6.0|^7.0|^8.0",
"illuminate/validation": "^6.0|^7.0|^8.0"
"illuminate/http": "^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0",
"illuminate/session": "^6.0|^7.0|^8.0|^9.0",
"illuminate/contracts": "^6.0|^7.0|^8.0|^9.0",
"illuminate/validation": "^6.0|^7.0|^8.0|^9.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0|^9.0",
"orchestra/testbench": "^5.0|^6.0",
"nunomaduro/larastan": "^0.6"
"orchestra/testbench": "^5.0|^6.0|^7.0",
"nunomaduro/larastan": "^0.6|^1.0|^2.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/MultiStepForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ protected function nextStep(): self
*/
public function lastStep(): int
{
return $this->steps->keys()->filter(fn($value) => is_int($value))->max() ?? 1;
return $this->steps->keys()->filter(fn($value) => is_int($value))->max() ?: 1;
}

/**
Expand Down

0 comments on commit 2a16c0e

Please sign in to comment.