Skip to content

feat: add steps

feat: add steps #517

Triggered via pull request December 20, 2023 11:28
Status Failure
Total duration 3m 10s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
RedundantCondition: tests/Mooc/Steps/Domain/Quiz/QuizStepMother.php#L26
tests/Mooc/Steps/Domain/Quiz/QuizStepMother.php:26:20: RedundantCondition: Type array<array-key, CodelyTv\Mooc\Steps\Domain\Quiz\QuizStepQuestion> for $questions is never null (see https://psalm.dev/122)
TypeDoesNotContainNull: tests/Mooc/Steps/Domain/Quiz/QuizStepMother.php#L26
tests/Mooc/Steps/Domain/Quiz/QuizStepMother.php:26:34: TypeDoesNotContainNull: Cannot resolve types for $questions - array<array-key, CodelyTv\Mooc\Steps\Domain\Quiz\QuizStepQuestion> does not contain null (see https://psalm.dev/090)
InvalidReturnType: tests/Mooc/Steps/Domain/Quiz/QuizStepQuestionMother.php#L14
tests/Mooc/Steps/Domain/Quiz/QuizStepQuestionMother.php:14:80: InvalidReturnType: The declared return type 'CodelyTv\Mooc\Steps\Domain\Video\VideoStepUrl' for CodelyTv\Tests\Mooc\Steps\Domain\Quiz\QuizStepQuestionMother::create is incorrect, got 'CodelyTv\Mooc\Steps\Domain\Quiz\QuizStepQuestion' (see https://psalm.dev/011)
InvalidReturnStatement: tests/Mooc/Steps/Domain/Quiz/QuizStepQuestionMother.php#L16
tests/Mooc/Steps/Domain/Quiz/QuizStepQuestionMother.php:16:10: InvalidReturnStatement: The inferred type 'CodelyTv\Mooc\Steps\Domain\Quiz\QuizStepQuestion' does not match the declared return type 'CodelyTv\Mooc\Steps\Domain\Video\VideoStepUrl' for CodelyTv\Tests\Mooc\Steps\Domain\Quiz\QuizStepQuestionMother::create (see https://psalm.dev/128)
build
Process completed with exit code 2.