Upgrade to Laravel 9 (#4413)

Co-authored-by: DaneEveritt <dane@daneeveritt.com>
This commit is contained in:
Matthew Penner 2022-10-14 10:59:20 -06:00 committed by GitHub
parent 95e15d2c8a
commit cbcf62086f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
573 changed files with 4387 additions and 9411 deletions

View file

@ -16,18 +16,14 @@ abstract class ApplicationApiRequest extends FormRequest
/**
* The resource that should be checked when performing the authorization
* function for this request.
*
* @var string|null
*/
protected $resource;
protected ?string $resource;
/**
* The permission level that a given API key should have for accessing
* the defined $resource during the request cycle.
*
* @var int
*/
protected $permission = AdminAcl::NONE;
protected int $permission = AdminAcl::NONE;
/**
* Determine if the current user is authorized to perform
@ -80,7 +76,7 @@ abstract class ApplicationApiRequest extends FormRequest
* @param class-string<T> $expect
*
* @return T
* @noinspection PhpUndefinedClassInspection
*
* @noinspection PhpDocSignatureInspection
*/
public function parameter(string $key, string $expect)