Skip to content

Added PHPStan

Added PHPStan #298

Triggered via pull request April 9, 2024 10:43
@Steveb-pSteveb-p
synchronize #78
phpstan
Status Failure
Total duration 50s
Artifacts

ci.yaml

on: pull_request
Matrix: Run code style check
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

30 errors
Tests (7.4): src/bundle/Controller/PasswordResetController.php#L1
Ignored error pattern #^Cannot access property \$email on Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|false\.$# in path /home/runner/work/user/user/src/bundle/Controller/PasswordResetController.php was not matched in reported errors.
Tests (7.4): src/bundle/Controller/PasswordResetController.php#L1
Ignored error pattern #^Parameter \#1 \$value of function count expects array\|Countable, iterable\<Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\> given\.$# in path /home/runner/work/user/user/src/bundle/Controller/PasswordResetController.php was not matched in reported errors.
Tests (7.4): src/bundle/Controller/PasswordResetController.php#L93
Parameter #1 $var of function count expects array|Countable, iterable<Ibexa\Contracts\Core\Repository\Values\User\User> given.
Tests (7.4): src/bundle/Controller/PasswordResetController.php#L101
Parameter #1 $user of method Ibexa\Bundle\User\Controller\PasswordResetController::sendResetPasswordMessage() expects Ibexa\Contracts\Core\Repository\Values\User\User, Ibexa\Contracts\Core\Repository\Values\User\User|false given.
Tests (7.4): src/bundle/Controller/PasswordResetController.php#L136
Parameter #1 $var of function count expects array|Countable, iterable<Ibexa\Contracts\Core\Repository\Values\User\User> given.
Tests (7.4): src/bundle/Controller/PasswordResetController.php#L266
Method Ibexa\Bundle\User\Controller\PasswordResetController::sendNotification() has parameter $user with no type specified.
Tests (7.4): src/bundle/Controller/UserSettingsController.php#L1
Ignored error pattern #^Property Ibexa\\Bundle\\User\\Controller\\UserSettingsController\:\:\$configResolver is never read, only written\.$# in path /home/runner/work/user/user/src/bundle/Controller/UserSettingsController.php was not matched in reported errors.
Tests (7.4): src/bundle/Controller/UserSettingsController.php#L71
Cannot call method getAPIUser() on Symfony\Component\Security\Core\User\UserInterface|null.
Tests (7.4): src/bundle/Controller/UserSettingsController.php#L107
Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton().
Tests (7.4): src/bundle/Controller/UserSettingsController.php#L108
Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton().
Tests (8.0): src/bundle/Controller/PasswordResetController.php#L1
Ignored error pattern #^Cannot access property \$email on Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|false\.$# in path /home/runner/work/user/user/src/bundle/Controller/PasswordResetController.php was not matched in reported errors.
Tests (8.0): src/bundle/Controller/PasswordResetController.php#L101
Parameter #1 $user of method Ibexa\Bundle\User\Controller\PasswordResetController::sendResetPasswordMessage() expects Ibexa\Contracts\Core\Repository\Values\User\User, Ibexa\Contracts\Core\Repository\Values\User\User|false given.
Tests (8.0): src/bundle/Controller/PasswordResetController.php#L266
Method Ibexa\Bundle\User\Controller\PasswordResetController::sendNotification() has parameter $user with no type specified.
Tests (8.0): src/bundle/Controller/UserSettingsController.php#L1
Ignored error pattern #^Property Ibexa\\Bundle\\User\\Controller\\UserSettingsController\:\:\$configResolver is never read, only written\.$# in path /home/runner/work/user/user/src/bundle/Controller/UserSettingsController.php was not matched in reported errors.
Tests (8.0): src/bundle/Controller/UserSettingsController.php#L71
Cannot call method getAPIUser() on Symfony\Component\Security\Core\User\UserInterface|null.
Tests (8.0): src/bundle/Controller/UserSettingsController.php#L107
Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton().
Tests (8.0): src/bundle/Controller/UserSettingsController.php#L108
Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton().
Tests (8.0): src/bundle/Controller/UserSettingsController.php#L125
Cannot call method getName() on Ibexa\User\UserSetting\UserSettingGroup|null.
Tests (8.0): src/lib/Form/Processor/UserRegisterFormProcessor.php#L1
Ignored error pattern #^Method Ibexa\\User\\Form\\Processor\\UserRegisterFormProcessor\:\:createUser\(\) has parameter \$languageCode with no type specified\.$# in path /home/runner/work/user/user/src/lib/Form/Processor/UserRegisterFormProcessor.php was not matched in reported errors.
Tests (8.0): src/lib/Form/Processor/UserRegisterFormProcessor.php#L1
Ignored error pattern #^Property Ibexa\\User\\Form\\Processor\\UserRegisterFormProcessor\:\:\$repository \(Ibexa\\Core\\Repository\\Repository\) does not accept Ibexa\\Contracts\\Core\\Repository\\Repository\.$# in path /home/runner/work/user/user/src/lib/Form/Processor/UserRegisterFormProcessor.php was not matched in reported errors.
Tests (8.2): src/bundle/Controller/PasswordResetController.php#L1
Ignored error pattern #^Cannot access property \$email on Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|false\.$# in path /home/runner/work/user/user/src/bundle/Controller/PasswordResetController.php was not matched in reported errors.
Tests (8.2): src/bundle/Controller/PasswordResetController.php#L101
Parameter #1 $user of method Ibexa\Bundle\User\Controller\PasswordResetController::sendResetPasswordMessage() expects Ibexa\Contracts\Core\Repository\Values\User\User, Ibexa\Contracts\Core\Repository\Values\User\User|false given.
Tests (8.2): src/bundle/Controller/PasswordResetController.php#L266
Method Ibexa\Bundle\User\Controller\PasswordResetController::sendNotification() has parameter $user with no type specified.
Tests (8.2): src/bundle/Controller/UserSettingsController.php#L1
Ignored error pattern #^Property Ibexa\\Bundle\\User\\Controller\\UserSettingsController\:\:\$configResolver is never read, only written\.$# in path /home/runner/work/user/user/src/bundle/Controller/UserSettingsController.php was not matched in reported errors.
Tests (8.2): src/bundle/Controller/UserSettingsController.php#L71
Cannot call method getAPIUser() on Symfony\Component\Security\Core\User\UserInterface|null.
Tests (8.2): src/bundle/Controller/UserSettingsController.php#L107
Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton().
Tests (8.2): src/bundle/Controller/UserSettingsController.php#L108
Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton().
Tests (8.2): src/bundle/Controller/UserSettingsController.php#L125
Cannot call method getName() on Ibexa\User\UserSetting\UserSettingGroup|null.
Tests (8.2): src/lib/Form/Processor/UserRegisterFormProcessor.php#L1
Ignored error pattern #^Method Ibexa\\User\\Form\\Processor\\UserRegisterFormProcessor\:\:createUser\(\) has parameter \$languageCode with no type specified\.$# in path /home/runner/work/user/user/src/lib/Form/Processor/UserRegisterFormProcessor.php was not matched in reported errors.
Tests (8.2): src/lib/Form/Processor/UserRegisterFormProcessor.php#L1
Ignored error pattern #^Property Ibexa\\User\\Form\\Processor\\UserRegisterFormProcessor\:\:\$repository \(Ibexa\\Core\\Repository\\Repository\) does not accept Ibexa\\Contracts\\Core\\Repository\\Repository\.$# in path /home/runner/work/user/user/src/lib/Form/Processor/UserRegisterFormProcessor.php was not matched in reported errors.