File tree 1 file changed +3
-2
lines changed
src/Illuminate/Foundation/Testing/Concerns
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminate \Foundation \Testing \Concerns ;
4
4
5
+ use BackedEnum ;
5
6
use Illuminate \Contracts \Http \Kernel as HttpKernel ;
6
7
use Illuminate \Cookie \CookieValuePrefix ;
7
8
use Illuminate \Http \Request ;
@@ -331,11 +332,11 @@ public function from(string $url)
331
332
/**
332
333
* Set the referer header and previous URL session value from a given route in order to simulate a previous request.
333
334
*
334
- * @param string $name
335
+ * @param \BackedEnum| string $name
335
336
* @param mixed $parameters
336
337
* @return $this
337
338
*/
338
- public function fromRoute (string $ name , $ parameters = [])
339
+ public function fromRoute (BackedEnum | string $ name , $ parameters = [])
339
340
{
340
341
return $ this ->from ($ this ->app ['url ' ]->route ($ name , $ parameters ));
341
342
}
You can’t perform that action at this time.
0 commit comments