- πΊπΈUnited States pwolanin
For this branch we still need to support PHP 7, so using str_contains() is not going to work.
Clearly the test coverage doesn't hit that line, so we should add some more testing.
- Status changed to Needs review
about 2 years ago 8:04pm 27 January 2023 - πΊπΈUnited States pwolanin
Benji points out that the str_contains() is provided on php 7 by symfony/polyfill-php80, so the patch code should work either way
- πΊπΈUnited States benjifisher Boston area
I am actually not sure whether it is
polyfill-php80
orpolyfill-php72
orpolyfill-php73
. Maybe the first one provides compatibility for sites using PHP 8.0? But I did test using PHP 7.4:$ ddev drush php Psy Shell v0.10.8 (PHP 7.4.33 β cli) by Justin Hileman >>> str_contains('foobar', 'bar') => true >>> str_contains(null, 'bar') => false >>> \q
I did not test, but the patch is simple and looks like it should work, so +1/2 for RTBC.
If the maintainers want steps to reproduce the bug, then I think PMNMI is the right issue status. Besides steps to reproduce, a stach trace may be helpful.
- Status changed to Postponed: needs info
almost 2 years ago 2:31pm 24 April 2023 - π³π±Netherlands arkener
This issue is most likely caused by the same issue as π Deprecation message on validation of empty file key Fixed . While
KeyProviderInterface::getKeyValue()
currently states that the return statement should always be a string, this seems to currently not be the case, for example when using the environment and file key types.I've also created π KeyProviderInterface::getKeyValue() doesn't always return a string Needs review upstream, so we can some clarification on this issue.
- π¦πΊAustralia Nadim Hossain
I have faced the same issue and the patch #3 works for me. Just re-rolling it for version 8.x-1.1 to use it with the latest 1.x release.
- Status changed to Needs review
11 months ago 5:34pm 27 February 2024 - last update
11 months ago 11 pass - πΊπΈUnited States pwolanin
If people are seeing this for real, please suggest a test case we can add. I'll note the bug is fixed in a different way in the 2.x branch
- last update
11 months ago 10 pass, 2 fail - last update
11 months ago 11 pass -
pwolanin β
committed 30b15470 on 8.x-1.x
Issue #3298726 by rik.scholten, pwolanin, Nadim Hossain: Fix for passing...
-
pwolanin β
committed 30b15470 on 8.x-1.x
- Status changed to Fixed
11 months ago 5:44pm 16 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.