- Issue created by @mondrake
- First commit to issue fork.
- Merge request !7183Drupal\Tests\Core\Config\ConfigTest file updated → (Closed) created by dineshkumarbollu
- First commit to issue fork.
- Status changed to Needs review
8 months ago 11:04am 2 April 2024 - Status changed to RTBC
8 months ago 1:37pm 2 April 2024 - 🇺🇸United States smustgrave
Checked ConfigTest and this was the only instance of expectError().
- Status changed to Needs work
8 months ago 1:48pm 2 April 2024 - 🇮🇹Italy mondrake 🇮🇹
This is not enough for PHPUnit 10, since
trigger_error
PHPUnit's error handler is no longer converting thetrigger?error
into an exception. - First commit to issue fork.
- Status changed to Needs review
8 months ago 9:23pm 9 April 2024 - 🇬🇧United Kingdom longwave UK
NestedArray::setValue()
already has some support for this but allowed the error to happen; we can catch it before it happens and throw an exception instead. - Status changed to RTBC
8 months ago 9:40pm 9 April 2024 - Status changed to Needs work
8 months ago 10:26pm 9 April 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Given this is a component I think we should update \Drupal\Tests\Component\Utility\NestedArrayTest to test for this too.
- Status changed to Needs review
8 months ago 10:05pm 11 April 2024 - 🇬🇧United Kingdom longwave UK
Added test coverage to the component, also uncovered an existing bug where $force was not required if you were replacing a scalar directly with an array - this now triggers a LogicException without $force, which I think is the correct behaviour.
- Status changed to Needs work
8 months ago 4:55pm 12 April 2024 - 🇺🇸United States smustgrave
Appears to have caused large number of test failures.
- 🇳🇿New Zealand quietone
This is changing the behavior of NestedArray so I think another solution is needed. And it also prevents installing Drupal thus the many failed tests.
- 🇬🇧United Kingdom longwave UK
Yeah maybe the behaviour is intended although it seemed wrong when I wrote the test, I will just write another test instead and not change the behaviour I think...
- Status changed to Needs review
7 months ago 1:52pm 15 April 2024 - 🇬🇧United Kingdom longwave UK
Reverted behaviour change, fixed the test. I guess it's by design that you can overwrite a scalar with an array, just you can't try to make further children under the scalar that previously didn't exist.
- Status changed to RTBC
7 months ago 7:26pm 15 April 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
- Status changed to Fixed
7 months ago 9:56pm 15 April 2024 -
alexpott →
committed e8ac11da on 10.3.x
Issue #3427174 by longwave, quietone, dineshkumarbollu, mondrake,...
-
alexpott →
committed e8ac11da on 10.3.x
- Status changed to RTBC
7 months ago 10:08pm 15 April 2024 - Status changed to Fixed
7 months ago 10:30pm 15 April 2024 -
alexpott →
committed 1c017c0e on 11.x
Issue #3427174 by longwave, quietone, dineshkumarbollu, mondrake,...
-
alexpott →
committed 1c017c0e on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.