Skip to content

CI: Fix Psalm checks #4246

CI: Fix Psalm checks

CI: Fix Psalm checks #4246

Triggered via push January 11, 2025 01:17
Status Failure
Total duration 10m 10s
Artifacts

php_analysis.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors
UndefinedVariable: src/CoreBundle/Entity/User.php#L2415
src/CoreBundle/Entity/User.php:2415:48: UndefinedVariable: Cannot find referenced variable $user (see https://psalm.dev/024)
UndefinedVariable: src/CoreBundle/Entity/User.php#L2415
src/CoreBundle/Entity/User.php:2415:90: UndefinedVariable: Cannot find referenced variable $user (see https://psalm.dev/024)
NoValue: src/CoreBundle/Form/DataTransformer/ResourceToIdentifierTransformer.php#L49
src/CoreBundle/Form/DataTransformer/ResourceToIdentifierTransformer.php:49:49: NoValue: All possible types for this argument were invalidated - This may be dead code (see https://psalm.dev/179)
NoValue: src/CoreBundle/Form/DataTransformer/ResourceToIdentifierTransformer.php#L50
src/CoreBundle/Form/DataTransformer/ResourceToIdentifierTransformer.php:50:13: NoValue: All possible types for this return were invalidated - This may be dead code (see https://psalm.dev/179)
MissingTemplateParam: src/CoreBundle/Security/Authorization/Voter/MessageRelUserVoter.php#L16
src/CoreBundle/Security/Authorization/Voter/MessageRelUserVoter.php:16:7: MissingTemplateParam: Chamilo\CoreBundle\Security\Authorization\Voter\MessageRelUserVoter has missing template params when extending Symfony\Component\Security\Core\Authorization\Voter\Voter, expecting 2 (see https://psalm.dev/182)
UndefinedDocblockClass: src/CoreBundle/ServiceHelper/ThemeHelper.php#L81
src/CoreBundle/ServiceHelper/ThemeHelper.php:81:16: UndefinedDocblockClass: Docblock-defined class, interface or enum named Chamilo\CoreBundle\ServiceHelper\UnableToCheckExistence does not exist (see https://psalm.dev/200)
MissingTemplateParam: src/CoreBundle/State/SocialPostStateProvider.php#L16
src/CoreBundle/State/SocialPostStateProvider.php:16:42: MissingTemplateParam: Chamilo\CoreBundle\State\SocialPostStateProvider has missing template params when extending ApiPlatform\State\ProviderInterface, expecting 1 (see https://psalm.dev/182)
TooFewArguments: tests/CourseBundle/Repository/CDocumentRepositoryTest.php#L1023
tests/CourseBundle/Repository/CDocumentRepositoryTest.php:1023:24: TooFewArguments: Too few arguments for Chamilo\CourseBundle\Repository\CDocumentRepository::toggleVisibilityPublishedDraft - expecting course to be passed (see https://psalm.dev/025)
TooFewArguments: tests/CourseBundle/Repository/CDocumentRepositoryTest.php#L1023
tests/CourseBundle/Repository/CDocumentRepositoryTest.php:1023:24: TooFewArguments: Too few arguments for Chamilo\CourseBundle\Repository\CDocumentRepository::toggleVisibilityPublishedDraft - expecting session to be passed (see https://psalm.dev/025)
TooFewArguments: tests/CourseBundle/Repository/CDocumentRepositoryTest.php#L1023
tests/CourseBundle/Repository/CDocumentRepositoryTest.php:1023:24: TooFewArguments: Too few arguments for method Chamilo\CoreBundle\Repository\ResourceRepository::togglevisibilitypublisheddraft saw 1 (see https://psalm.dev/025)