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

Type of Clock::$config must be array #24

Open
pgrzego opened this issue Jun 17, 2024 · 0 comments · May be fixed by #25
Open

Type of Clock::$config must be array #24

pgrzego opened this issue Jun 17, 2024 · 0 comments · May be fixed by #25

Comments

@pgrzego
Copy link

pgrzego commented Jun 17, 2024

With the newer versions of Codeception, the internal variables have declared types. So whatever extends the abstract class Module (like Clock) needs to have it declared too. Otherwise, this error appears:

PHP Fatal error:  Type of JeckelLab\Clock\CodeceptionHelper\Clock::$config must be array (as in class Codeception\Module) in /var/www/project/vendor/jeckel-lab/clock/src/CodeceptionHelper/Clock.php on line 25
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 a pull request may close this issue.

1 participant