Closed stefkes closed 3 years ago
When generating a request with php artisan make:request MyRequest you end up with a class that has
php artisan make:request MyRequest
protected function authorize() { return true; } protected function rules() { return [ // ]; }
But this gives Fatal error: Declaration of App\Http\Requests\MyRequest::authorize() must be compatible with Anik\Form\FormRequest::authorize(): bool
Fatal error: Declaration of App\Http\Requests\MyRequest::authorize() must be compatible with Anik\Form\FormRequest::authorize(): bool
The generated class should contain
protected function authorize(): bool { return true; } protected function rules(): array { return [ // ]; }
@stefkes it should be fixed now. update your package version please. sorry for the inconvenience and thank you for the report 👍
My pleasure, thanks for the fix and your response.
When generating a request with
php artisan make:request MyRequest
you end up with a class that hasBut this gives
Fatal error: Declaration of App\Http\Requests\MyRequest::authorize() must be compatible with Anik\Form\FormRequest::authorize(): bool
The generated class should contain