Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix namespace mismatch of ActionSequence #116

Merged
merged 1 commit into from Feb 14, 2024

Conversation

mbrodala
Copy link
Contributor

@mbrodala mbrodala commented Jan 11, 2024

Module methods are copied into a generated trait which does not have any imports. Thus the generated namespace of the trait was used for the "ActionSequence" class. This did not match the actual namespace of that class. Fix this by using a FQCN instead.

Example error visible in VisualStudio Code:

Argument '2' passed to performOn() is expected to be of type Tests\Support_generated\ActionSequence|array|callable, Codeception\Util\ActionSequence given

@Naktibalda Naktibalda merged commit f770139 into Codeception:master Feb 14, 2024
0 of 4 checks passed
@mbrodala mbrodala deleted the patch-1 branch February 19, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants