-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Casted values to array. #19
Conversation
We should investigate it further since field handlers work on the assumption that values is always an array, and it should since it comes from https://github.com/jhedstrom/drupalextension/blob/master/src/Drupal/DrupalExtension/Context/RawDrupalContext.php#L249-249 Casting to an array is only curing the symptoms, the real problem seems to be somewhere else. What do you think? |
Strange enough I have different code: public function nodeCreate($node) { $this->dispatchHooks('BeforeNodeCreateScope', $node); $saved = $this->getDriver()->createNode($node); $this->dispatchHooks('AfterNodeCreateScope', $saved); $this->nodes[] = $saved; return $saved; } using this in my composer file: |
Ah there we go! :) You should test using master branch from both projects. On Fri, Feb 27, 2015 at 11:05 AM, dutchiexl [email protected]
|
Ok, this may be closed, master works ok |
How to set master branch properly? When I have in my composer.json file
I get error on "composer update" Problem 1 |
I have updated drupal-driver to master branch manually (downloaded archive from github and replaced it locally), but it didn't help unfortunately. |
hmmm, this is what I have, and it works for me: "drupal/drupal-extension": "dev-master", If it doesn't work for you, something must be wrong with the packagist. |
Casted values to array. Signed-off-by: Jonathan Hedstrom <[email protected]>
If you want to use |
Yes indeed |
I added this to my composer: "minimum-stability": "dev", "prefer-stable": true, |
Thanks guys, worked like a charm. |
Casted all handler field values variables to arrays, because most of the time they are not an array but a string.