Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

undeclared static property: GherkinParam::$excludeActions #15

Closed
jeckel opened this issue Apr 17, 2019 · 1 comment
Closed

undeclared static property: GherkinParam::$excludeActions #15

jeckel opened this issue Apr 17, 2019 · 1 comment
Labels

Comments

@jeckel
Copy link

jeckel commented Apr 17, 2019

I have an error when I activate this extension

Warning: array_merge(): Expected parameter 2 to be an array, object given in /var/www/project/vendor/codeception/codeception/src/Codeception/Extension.php on line 29

Call Stack:
    0.0003     412264   1. {main}() /var/www/project/vendor/codeception/codeception/codecept:0
    0.0379    5796912   2. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/codecept:43
    0.0379    5796912   3. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Application.php:108
    0.0409    6030320   4. Codeception\Application->doRun() /var/www/project/vendor/symfony/console/Application.php:145
    0.0411    6033824   5. Codeception\Application->doRunCommand() /var/www/project/vendor/symfony/console/Application.php:269
    0.0412    6033824   6. Codeception\Command\Run->run() /var/www/project/vendor/symfony/console/Application.php:908
    0.0415    6037208   7. Codeception\Command\Run->execute() /var/www/project/vendor/symfony/console/Command/Command.php:255
    0.0492    7334784   8. Codeception\Command\Run->runSuites() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:390
    0.0492    7334784   9. Codeception\Codecept->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:495
    0.0508    7340528  10. Codeception\Codecept->runSuite() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:159
    0.0511    7380296  11. Codeception\SuiteManager->__construct() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:187
    0.0529    7671632  12. Codeception\Lib\ModuleContainer->create() /var/www/project/vendor/codeception/codeception/src/Codeception/SuiteManager.php:67
    0.0534    7691080  13. Codeception\Lib\Di->instantiate() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php:92
    0.0534    7691384  14. ReflectionClass->newInstanceArgs() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/Di.php:84
    0.0534    7691544  15. Codeception\Extension\GherkinParam->__construct() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/Di.php:84
    0.0534    7691544  16. array_merge() /var/www/project/vendor/codeception/codeception/src/Codeception/Extension.php:29


Fatal error: Uncaught Error: Access to undeclared static property: Codeception\Extension\GherkinParam::$excludeActions in /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php on line 164

Error: Access to undeclared static property: Codeception\Extension\GherkinParam::$excludeActions in /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php on line 164

Call Stack:
    0.0003     412264   1. {main}() /var/www/project/vendor/codeception/codeception/codecept:0
    0.0379    5796912   2. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/codecept:43
    0.0379    5796912   3. Codeception\Application->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Application.php:108
    0.0409    6030320   4. Codeception\Application->doRun() /var/www/project/vendor/symfony/console/Application.php:145
    0.0411    6033824   5. Codeception\Application->doRunCommand() /var/www/project/vendor/symfony/console/Application.php:269
    0.0412    6033824   6. Codeception\Command\Run->run() /var/www/project/vendor/symfony/console/Application.php:908
    0.0415    6037208   7. Codeception\Command\Run->execute() /var/www/project/vendor/symfony/console/Command/Command.php:255
    0.0492    7334784   8. Codeception\Command\Run->runSuites() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:390
    0.0492    7334784   9. Codeception\Codecept->run() /var/www/project/vendor/codeception/codeception/src/Codeception/Command/Run.php:495
    0.0508    7340528  10. Codeception\Codecept->runSuite() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:159
    0.0511    7380296  11. Codeception\SuiteManager->__construct() /var/www/project/vendor/codeception/codeception/src/Codeception/Codecept.php:187
    0.0529    7671632  12. Codeception\Lib\ModuleContainer->create() /var/www/project/vendor/codeception/codeception/src/Codeception/SuiteManager.php:67
    0.0539    7697600  13. Codeception\Lib\ModuleContainer->getActionsForModule() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php:99
    0.0539    7700328  14. Codeception\Lib\ModuleContainer->includeMethodAsAction() /var/www/project/vendor/codeception/codeception/src/Codeception/Lib/ModuleContainer.php:145

I'm using:

  • Codeception 2.5.5
  • php 7.3
@jeckel
Copy link
Author

jeckel commented Apr 17, 2019

By bad, I added it to modules, and not to extensions...

@jeckel jeckel closed this as completed Apr 17, 2019
@edno edno added the wontfix label Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants