| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function registerAuthenticator() |
||
| 17 | { |
||
| 18 | $this->app->bind('auth', function ($app) { |
||
| 19 | // Once the authentication service has actually been requested by the developer |
||
| 20 | // we will set a variable in the application indicating such. This helps us |
||
| 21 | // know that we need to set any queued cookies in the after event later. |
||
| 22 | $app['auth.loaded'] = true; |
||
| 23 | return new AuthManager($app); |
||
|
|
|||
| 24 | }); |
||
| 25 | $this->app->singleton('auth.driver', function ($app) { |
||
| 26 | return $app['auth']->guard(); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: