Closed FlorentTorregrosa closed 2 years ago
:+1, LGTM
Works for me.
This is the last blocking for update our projects to php 8.1 and drupal 9.4. Please go on ;- )
With ui_patterns 8.x-1.2 and D9.4.1 + php8.1.7 I get this error:
Deprecated function: Return type of Drupal\ui_patterns\Definition\PatternDefinition::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 13 of modules/contrib/ui_patterns/src/Definition/PatternDefinition.php).
I've no particular opinion on this, @FlorentTorregrosa please proceed as it makes the most sense, taking into account the community's feedback.
@steveoriol Have you applied the patch from the PR? Without changes from this PR I got the same error. After applying the changes, no more error.
@ademarco I can't merge because "At least 1 approving review is required by reviewers with write access."
Can you please approve the changes and/or give @pdureau write access? Or do you want to proceed in another way?
@FlorentTorregrosa, Yes no more error with the PR. Merci.
I've merged GitHub actions, we should rebase this PR on current main branch, so we trigger the CI. We should also add PHP 8.1 to the CI itself, here:
PHP_VERSION: ["7.4", "8.0"]
The patch works great for me, thanks :+1:
Hi,
PR rebased.
I have added PHP 8.1 in the PHP Version matrix, but it seems that tests use the ci.yml file from the main branch and not the one from the PR.
So I pushed my branch on this repository directly: https://github.com/nuvoleweb/ui_patterns/tree/342-php81
Waiting for results.
Seems that tests are ok on PHP 8.1 :).
@ademarco Is it ok for you to merge?
ui_patterns-8.x-1.2-php81-compatibility.txt
Patch to be able to apply on 8.x-1.2
@FlorentTorregrosa could you, please, do a release with this change as ensures PHP 8.1 compatibility. I think it's worth it
@claudiu-cristea Ok for sure.
I was about to create one when:
@ademarco can you please create a new release with updated CHANGELOG.md? Otherwise I can create the tag and releases on both Github and Drupal.org, just the file will not be up-to-date. But as the end goal is to move back to drupal.org, is it important?
@FlorentTorregrosa you can create a release branch with only the changelog, then merge that one, and release from there.
@FlorentTorregrosa Now you have #363. Would that be enough?
@claudiu-cristea Thanks, from what I see this is almost the same from what I have done locally (and forgot to push...).
Would you like to join the Drupal Slack channel https://drupal.slack.com/archives/C03MFN4D40J ?
Also please see https://www.drupal.org/project/ui_suite/issues/3309394. I will do the release next week at DrupalCon, and try to migrate on Drupal.org.
@FlorentTorregrosa thank you, it would be good to have it as soon as possible
With 8.x-1.3 version released it should be ok.
Fix #342