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

Argument 1 passed to ZeroDaHero\LaravelWorkflow\WorkflowRegistry::__construct() must be of the type array, null given, called in /var/www/html/vendor/zerodahero/laravel-workflow/src/WorkflowServiceProvider.php #32

Closed
codeDude64 opened this issue Nov 20, 2020 · 4 comments

Comments

@codeDude64
Copy link

Error when I use workflow_get();

I'm in a team that we are using your software to manage a workflow. A partner created the workflow and tested in a call and all it works!! But when I pulled the branch where there the code that works and then typed in console composer install to download the lib, in my side didn't work, Laravel shows

Argument 1 passed to ZeroDaHero\LaravelWorkflow\WorkflowRegistry::__construct() must be of the type array, null given, called in /var/www/html/vendor/zerodahero/laravel-workflow/src/WorkflowServiceProvider.php

The different here is the error say ...null given...

Notes:

  • We are using a docker container, so I think that the env is not the problem.
  • the marking_store type is multiple_state.
  • We are using Laravel 6.2 and your lib in 2.0 version
@zerodahero
Copy link
Owner

Env is probably the culprit here, since those arguments are the config. Looks like in the 2.0 branch, you'll need both configs (workflow and workflow_registry) defined (as normal config arrays). Are both configs setup?

@codeDude64
Copy link
Author

@zerodahero There are the both configs file in my branch (workflow and workflow_registry). I don't know if I must to do something in console to workflow lib admits both config file.
it seems that the workflow receive null in both arguments.

image

@zerodahero
Copy link
Owner

Yeah, definitely seems env-related. Have you tried php artisan config:clear?

@codeDude64
Copy link
Author

Great, it worked !! Thank you

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

No branches or pull requests

2 participants