bug #25109 Make debug:container search command case-insensitive (jzawadzki)
This PR was merged into the 3.3 branch.
Discussion
----------
Make debug:container search command case-insensitive
| Q | A
| ------------- | ---
| Branch? | 3.2
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Fixed tickets | #25107
| License | MIT
| Doc PR |
This bug fixes the #25107 - starts from 3.2 services may be written with uppercase (e.g. FQCN) and search fails to match those services.
Commits
-------
c429c3346a
Make search in debug:container command case-insensitive
This commit is contained in:
commit
a824d34555
@ -217,9 +217,8 @@ EOF
|
|||||||
{
|
{
|
||||||
$serviceIds = $builder->getServiceIds();
|
$serviceIds = $builder->getServiceIds();
|
||||||
$foundServiceIds = array();
|
$foundServiceIds = array();
|
||||||
$name = strtolower($name);
|
|
||||||
foreach ($serviceIds as $serviceId) {
|
foreach ($serviceIds as $serviceId) {
|
||||||
if (false === strpos($serviceId, $name)) {
|
if (false === stripos($serviceId, $name)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$foundServiceIds[] = $serviceId;
|
$foundServiceIds[] = $serviceId;
|
||||||
|
Reference in New Issue
Block a user