Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function success(Form $form, $user, Request $request): void |
||
28 | { |
||
29 | if (!$user instanceof User) { |
||
30 | throw new NotSupportedException( |
||
31 | sprintf( |
||
32 | '`%s` only supports forms that submit the `%s` entity. Received `%s`', |
||
33 | self::class, |
||
34 | User::class, |
||
35 | \is_object($user) ? \get_class($user) : $user |
||
36 | ) |
||
37 | ); |
||
38 | } |
||
39 | $this->passwordManager->persistPlainPassword($user); |
||
40 | $user->eraseCredentials(); |
||
41 | } |
||
43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths