`grabParameter()`: Remove `UnitEnum` as return type

Open Beginner friendly
#251 1 comment 1 reaction 0 assignees View on GitHub

@OmarAsem27 is already working on this.

Since Nov 12, 2026.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
83/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php, symfony
Domain
testing

Research direction

Open src/Codeception/Module/Symfony/ParameterAssertionsTrait.php at the grabParameter() return docblock and check how the project handles Psalm types. Remove UnitEnum from the documented return type, then run the relevant Psalm check to confirm the missing-class diagnostic is resolved.

Written by the indexing model from the issue text.

Description

Psalm is reporting:

Docblock-defined class, interface or enum named App\Tests\Support_generated\UnitEnum does not exist (see https://psalm.dev/200)

for @return array<array-key, mixed>|bool|string|int|float|UnitEnum|null at https://github.com/Codeception/module-symfony/blob/main/src/Codeception/Module/Symfony/ParameterAssertionsTrait.php#L23

Dominant language
PHP
Stars
96
Forks
26
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.