File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Illuminate/Foundation Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Container \Container ;
7
7
use Illuminate \Contracts \Auth \Access \Gate ;
8
8
use Illuminate \Contracts \Auth \Factory as AuthFactory ;
9
- use Illuminate \Contracts \Auth \StatefulGuard ;
9
+ use Illuminate \Contracts \Auth \Guard ;
10
10
use Illuminate \Contracts \Broadcasting \Factory as BroadcastFactory ;
11
11
use Illuminate \Contracts \Bus \Dispatcher ;
12
12
use Illuminate \Contracts \Cookie \Factory as CookieFactory ;
@@ -169,9 +169,9 @@ function asset($path, $secure = null): string
169
169
* Get the available auth instance.
170
170
*
171
171
* @param string|null $guard
172
- * @return ($guard is null ? \Illuminate\Contracts\Auth\Factory : \Illuminate\Contracts\Auth\StatefulGuard )
172
+ * @return ($guard is null ? \Illuminate\Contracts\Auth\Factory : \Illuminate\Contracts\Auth\Guard )
173
173
*/
174
- function auth ($ guard = null ): AuthFactory |StatefulGuard
174
+ function auth ($ guard = null ): AuthFactory |Guard
175
175
{
176
176
if (is_null ($ guard )) {
177
177
return app (AuthFactory::class);
Original file line number Diff line number Diff line change 9
9
assertType ('Illuminate\Config\Repository ' , app (Repository::class));
10
10
11
11
assertType ('Illuminate\Contracts\Auth\Factory ' , auth ());
12
- assertType ('Illuminate\Contracts\Auth\StatefulGuard ' , auth ('foo ' ));
12
+ assertType ('Illuminate\Contracts\Auth\Guard ' , auth ('foo ' ));
13
13
14
14
assertType ('Illuminate\Cache\CacheManager ' , cache ());
15
15
assertType ('bool ' , cache (['foo ' => 'bar ' ], 42 ));
You can’t perform that action at this time.
0 commit comments