File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ abstract class FormRequest
3939 * explicitly. When instantiated manually (e.g. in tests), the constructor
4040 * falls back to service('request').
4141 */
42- final public function __construct (?IncomingRequest $ request = null )
42+ final public function __construct (?Request $ request = null )
4343 {
4444 $ request ??= service ('request ' );
4545
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public function testConstructorThrowsWhenFallbackRequestIsNotIncomingRequest():
135135 Services::injectMock ('request ' , new CLIRequest (new App ()));
136136
137137 $ this ->expectException (RuntimeException::class);
138- $ this ->expectExceptionMessage ('requires an IncomingRequest instance ' );
138+ $ this ->expectExceptionMessage ('requires an IncomingRequest instance, got CodeIgniter\HTTP\CLIRequest. ' );
139139
140140 new class () extends FormRequest {
141141 public function rules (): array
You can’t perform that action at this time.
0 commit comments