chore: add phpstan static analysis minimum (#4511)
This commit is contained in:
parent
3f7e2a565f
commit
a1a52754ad
67 changed files with 561 additions and 279 deletions
|
@ -12,7 +12,10 @@ class LocationFormRequest extends AdminFormRequest
|
|||
public function rules(): array
|
||||
{
|
||||
if ($this->method() === 'PATCH') {
|
||||
return Location::getRulesForUpdate($this->route()->parameter('location')->id);
|
||||
/** @var Location $location */
|
||||
$location = $this->route()->parameter('location');
|
||||
|
||||
return Location::getRulesForUpdate($location->id);
|
||||
}
|
||||
|
||||
return Location::getRules();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue