-
Notifications
You must be signed in to change notification settings - Fork 67
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
Behat PHP version #438
Comments
Digging deeper, maybe it runs using PHP 7.3? https://quay.io/repository/pantheon-public/build-tools-ci/manifest/sha256:2cebe0db5c0cf5682ad14fa28550435a402425d2c9ef3c000e343db62ad93fde |
Ok! Got it! If at the top of your
Then your jobs are running using PHP 7.3. You could either change the default image to one of these: Or change the image for specific job like:
Now my tests are running. Some are failing with a new error:
But this is probably a separate issue. |
Run |
Or just look at example-drops-8-composer |
Thanks Greg! Can you explain the difference between 6.x and 8.x? I'm assuming they're not referencing Drupal versions. The last time I ran |
Just grabbing arbitrary tags from the docker image is not a good idea. Some of them were made by mistake (pre-releases that shouldn't have been released) and never supported. We can't ever remove them, though, because sometimes people look at the tags and decide to use them, so we break builds if they go away. The basic idea is that |
In
pantheon.yml
I havephp_version: 7.4
. It appears this is NOT the version used when running Behat tests against a Pantheon multidev. As far as I can tell, Behat somehow uses < 7.1.The behat_test job consistently fails due to this property in a Behat context class:
The error is:
My understanding is that this is called a nullable type, and it was introduced in PHP 7.1:
https://www.php.net/manual/en/migration71.new-features.php
I can say when running tests locally using 7.4, this error does not occur. So how and where is the PHP version used for Behat running against Pantheon configured? Sorry if I'm way off base here, but this is the only conclusion I can come to.
The text was updated successfully, but these errors were encountered: