- Issue created by @spokje
- 🇳🇱Netherlands spokje
Also see 📌 symfony/psr-http-message-bridge major version bump Needs review .
- Status changed to Needs review
11 months ago 6:49pm 7 December 2023 - 🇫🇷France andypost
Added changes from 🐛 phpspec/prophecy v1.17.0 does not support php 8.3 Active to the MR
- Issue was unassigned.
- Status changed to RTBC
11 months ago 1:03pm 8 December 2023 - 🇺🇸United States smustgrave
Seems to be all minor releases. Though with 10.2 out in 3 days wonder if it's too late?
- Status changed to Needs work
11 months ago 2:31pm 8 December 2023 - 🇮🇹Italy mondrake 🇮🇹
phpspec/prophecy-phpunit 2.1.0 was just released, https://github.com/phpspec/prophecy-phpunit/releases/tag/v2.1.0
- Status changed to Needs review
11 months ago 11:34pm 8 December 2023 - 🇫🇷France andypost
Added following changes
Needs review and fixes issues with PHP 8.3 deprecations https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.8.0
Composer prevents SF7 https://getcomposer.org/changelog/2.6.6+---------------------------+---------+---------+ | Dev Changes | From | To | +---------------------------+---------+---------+ | composer/composer | 2.6.5 | 2.6.6 | | instaclick/php-webdriver | 1.4.16 | 1.4.18 | | phpspec/prophecy-phpunit | v2.0.2 | v2.1.0 | | phpstan/phpstan | 1.10.47 | 1.10.48 | | squizlabs/php_codesniffer | 3.7.2 | 3.8.0 | +---------------------------+---------+---------+
- Status changed to Needs work
11 months ago 12:14am 9 December 2023 - 🇫🇷France andypost
one functional test repeatedly fails
Testing Drupal\Tests\options\FunctionalJavascript\OptionsFieldUITest EEEEEEEEE. 10 / 10 (100%) Time: 01:38.596, Memory: 4.00 MB There were 9 errors: 1) Drupal\Tests\options\FunctionalJavascript\OptionsFieldUITest::testOptionsAllowedValues with data set "List integer: Press button" ('list_integer', array('First', 'Second', 'Third'), false, 'Press button') Undefined array key "attribute" /builds/issue/drupal-3405696/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:226 /builds/issue/drupal-3405696/vendor/instaclick/php-webdriver/lib/WebDriver/Container.php:241 /builds/issue/drupal-3405696/core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php:400 /builds/issue/drupal-3405696/core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUITest.php:109 /builds/issue/drupal-3405696/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 2) Drupal\Tests\options\FunctionalJavascript\OptionsFieldUITest::testOptionsAllowedValues with data set "List integer: Enter button" ('list_integer', array('First', 'Second', 'Third'), false, 'Enter button') Undefined array key "attribute"
- First commit to issue fork.
- Status changed to Needs review
11 months ago 10:33am 9 December 2023 - 🇬🇧United Kingdom longwave UK
instaclick/php-webdriver
1.4.17 changed attribute(): https://github.com/instaclick/php-webdriver/releases/tag/1.4.17The relevant code change is https://github.com/instaclick/php-webdriver/compare/1.4.16..1.4.18#diff-...
Previously we were calling it as
getAttribute()
which has stopped working but switching toattribute()
appears to work on both the old and new releases in local testing. - 🇺🇸United States smustgrave
If this is targeting 10.2 is there a date this needs to be reviewed by?
- 🇫🇷France andypost
I think a bit more packages may add declaration and CI runs for PHP 8.3 in next week, also compatibility with SF7 a bonus
I bet right before 10.2 it should be considered for review
- Status changed to Needs work
11 months ago 8:31am 10 December 2023 - 🇳🇱Netherlands spokje
Another interesting question: Why is this NR when there are (a lot of) failing functional tests after the update of
behat/mink
and friends? - 🇬🇧United Kingdom longwave UK
The 10.2.0 release window is 11-15 December, really this needs to be completed towards the start of that window to ensure we have a stable release.
- 🇬🇧United Kingdom longwave UK
Behat has added more strict typing and the test failures all look related to that. At least two differentissues so far:
- Radio buttons can only take string inputs, sometimes we pass integers that were previously cast to string; I guess we have to cast this ourselves now.
- We used to check for the absence of headers by looking for NULL, the argument is now typed to string so it seems this is no longer possible, maybe need to raise an upstream bug for this.
Will continue to investigate.
- Status changed to Needs review
11 months ago 4:32pm 10 December 2023 - 🇬🇧United Kingdom longwave UK
We can work around both these issues, we should probably issue deprecations and fix the callers properly though.
- 🇬🇧United Kingdom longwave UK
Opened https://github.com/minkphp/Mink/issues/862 as there appears to be no supported way to check for a non-existent header in Mink, however we do have
responseHeaderExists()
already which we should convert all cases to use, perhaps in a followup. - 🇬🇧United Kingdom longwave UK
We also incorrectly pass headers to
drupalGet()
in a number of places. The docs say the array should be keyed by header name with the value being the header value; but in some cases we passed numeric arrays with both the header and value concatenated into the array value. This apparently still worked in older versions of Mink but now it is stricter, so I fixed all the cases I could find.An alternative way around this might be to detect it in
drupalGet()
and issue a deprecation, maybe we should do that instead? - 🇬🇧United Kingdom longwave UK
There are quite a lot of changes here. Unsure if we should just break these out to another issue, and avoid upgrading Mink in 10.2.0.
- 🇬🇧United Kingdom longwave UK
Guessing it is related to the upgrade of the Syn library in the Selenium driver: https://github.com/minkphp/MinkSelenium2Driver/releases/tag/v1.7.0
BC break (when doing custom logic with syn): syn JS library was upgraded from v0.0.3 to v0.15.0
Syn is used for drag operations, we have had issues with it before.
This makes me think it might be better to defer this upgrade until 10.3.
- 🇫🇷France andypost
+1 to move mink to separate issue it could be upgraded in bugfix release
- First commit to issue fork.
- 🇳🇿New Zealand quietone
I created an Issue for Behat 📌 Update Behat from 1.10 to 1.11 Active and reverted those changes from the MR.
- Status changed to RTBC
11 months ago 5:45pm 11 December 2023 - 🇺🇸United States smustgrave
Since today is the start of the 10.2 window mentioned #25 took a look at this again.
Tests appear green, applied locally and didn't notice anything weird.
Going to mark but guess it could be left open till the 15th? Or whenever the cutoff is.
- Status changed to Fixed
11 months ago 10:04pm 12 December 2023 - 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 10.2.x, thanks!
Do we have an issue already to switch to https://github.com/PHPCSStandards/PHP_CodeSniffer ?
- 🇬🇧United Kingdom longwave UK
@catch We don't depend on it directly:
$ composer why squizlabs/php_codesniffer dealerdirect/phpcodesniffer-composer-installer v1.0.0 requires squizlabs/php_codesniffer (^2.0 || ^3.1.0 || ^4.0) drupal/coder 8.3.22 requires squizlabs/php_codesniffer (^3.7.1) sirbrillig/phpcs-variable-analysis v2.11.17 requires squizlabs/php_codesniffer (^3.5.6) slevomat/coding-standard 8.14.1 requires squizlabs/php_codesniffer (^3.7.1)
Also as per https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/109 only the GitHub repo is changing now, the namespace on Packagist will stay the same (this has changed since the original announcement).
- 🇬🇧United Kingdom catch
Oh interesting, I though there was going to be a 301 and we'd eventually want to update, but if it's 100% indirect and also we don't need to change anyway, all good then.
Automatically closed - issue fixed for 2 weeks with no activity.