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

Protect against missing result value #91

Merged
merged 1 commit into from Jul 27, 2018

Conversation

sherakama
Copy link
Contributor

@sherakama sherakama commented Jul 25, 2018

When running composer drupal:scaffold I was returned with the error

[ErrorException]
  Undefined index: errors

Tracing through the problem it came to the errors key in the $result. It did not exist for me.

My setup

PHP: 7.1.20
drupal-composer/drupal-scaffold: 2.5.3
hirak/prestissimo: 0.3.6 (installed globally)
drupal/core: 8.5.5
Composer: 1.4.1

Fixes error: [ErrorException] Undefined index: errors
@webflo
Copy link
Member

webflo commented Jul 26, 2018

Makes sense, this has been changed in prestissimo 0.3.7.

hirak/prestissimo@a3dfa67

@sherakama
Copy link
Contributor Author

Ah, does makes sense.

I will update my local version to 0.3.7.

As prestissimo is not a requirement and drupal-scaffold cannot put in a version constraint this PR is still valid IMHO.

Thanks!

@webflo webflo merged commit fc6bf4c into drupal-composer:master Jul 27, 2018
@sherakama sherakama deleted the patch-1 branch July 27, 2018 15:39
@danielnv18
Copy link

Confirming that it works in master (hash: fc6bf4c)
could any maintainer make a release? thank for the awesome work

@webflo
Copy link
Member

webflo commented Aug 7, 2018

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 this pull request may close these issues.

None yet

3 participants