Add type hints for Laravel 10

This commit is contained in:
Shift
2023-05-24 21:33:15 +00:00
parent 4124cf39db
commit 979b9f704c
67 changed files with 118 additions and 114 deletions

View File

@@ -12,7 +12,7 @@ class BaseRequest extends FormRequest
*
* @return boolean
*/
public function authorize()
public function authorize(): bool
{
if (request()->isMethod('post') === true && method_exists($this, 'postAuthorize') === true) {
return $this->postAuthorize();
@@ -30,7 +30,7 @@ class BaseRequest extends FormRequest
*
* @return array<string, mixed>
*/
public function rules()
public function rules(): array
{
$rules = [];