Codeception: Compile Error: '\self' is an invalid class name
Iām trying to run: vendor/bin/codecept build
with a test suite which one of its modules now has methods with a fluid interface, that is, they have as return type ā: self
ā and I get this error:
PHP Fatal error: '\self' is an invalid class name in C:\...\tests\_build\support\_
generated\FunctionalTesterActions.php on line 4474
Compile Error: '\self' is an invalid class name
Check out the failed build here.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (17 by maintainers)
@DavertMik used
amOnPage
andclick
methods in his example, but neither of them will be chainable without making breaking change in Web interface.I think that it is fine to update interface in 5.0, but composer.json of framework modules and module-webdriver must be updated to require Codeception 5.