- Issue created by @mingsong
- Merge request !7Issue #3352286: Warning message in Drupal 10 with PHP 8.1 → (Open) created by mingsong
- Status changed to Needs review
over 1 year ago 5:13am 5 April 2023 - 🇮🇳India Vishal Choudhary Dharmshala
I have added a new patch to fixed these errors.
-
roderik →
committed f066922c on 8.x-3.x authored by
Mingsong →
Issue #3352286 by Mingsong: Warning message in Drupal 10 with PHP 8.1
-
roderik →
committed f066922c on 8.x-3.x authored by
Mingsong →
- Status changed to Needs work
over 1 year ago 4:25pm 10 August 2023 - 🇳🇱Netherlands roderik Amsterdam,NL / Budapest,HU
Checked both patches. Tested. Patch #5 is wrong:
$element['#default_value']
is an empty array on initial form load, which changes behavior. (You get 0 empty elements.) It also has unwanted whitespace changes.I'm committing this, but not closing the issue, because there is more to do here:
- The class' comment says:
* Shamelessly copied from multivalue_form_element, on who we'll depend in 4.x. * (At the time of adding this, they seemed to have issues with D9 * compatibility.)
- The changed code is not from the MultiValue.php currently commited in multivalue_form_element, but from a patch I made:
🐛
Don't add an empty element in some cases
Needs review
. This patch is now
- outdated, because the change from this issue is not propagated into #3199298
- outdated according to comment #3199298-8: Don't add an empty element in some cases → ($max should not occur anywhere in the code, so the patch likely should be rerolled)
- still not going to be merged because it's missing tests
- possibly complicated by the fact that I built my patch on another needs-review patch: if we add tests, we might need to split those two issues up again, for the reviewer.
This issue remains open to at least unify our own MultiValue.php with the patch, so that we don't lose any changes when we start depending on multivalue_form_element. (Or to track that we don't lose changes, in another way.)
- The class' comment says:
-
roderik →
committed f066922c on 4.x authored by
Mingsong →
Issue #3352286 by Mingsong: Warning message in Drupal 10 with PHP 8.1
-
roderik →
committed f066922c on 4.x authored by
Mingsong →
- First commit to issue fork.
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
6 months ago Waiting for branch to pass - Status changed to Fixed
6 months ago 6:59pm 28 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.