for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ImageFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
return true;
}
* Get the validation rules that apply to the request.
* @return array
array<string,string>
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function rules()
return ['file' => 'mimetypes:image/jpeg,image/gif,image/png'];
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.