Skip to content

Commit 222ba7b

Browse files
authored
MAGETWO-65588: [GitHub][PR] Strict checking types during di compilation #8053
2 parents 35b92c5 + 47eb67f commit 222ba7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup/src/Magento/Setup/Module/Di/Compiler/Config/Chain/BackslashTrim.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function resolveArguments(&$argument)
5757
}
5858

5959
foreach ($argument as $key => &$value) {
60-
if (in_array($key, ['_i_', '_ins_'])) {
60+
if (in_array($key, ['_i_', '_ins_'], true)) {
6161
$value = ltrim($value, '\\');
6262
continue;
6363
}

setup/src/Magento/Setup/Module/Di/Compiler/Config/Chain/PreferencesResolving.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function resolvePreferences(&$argument, &$preferences)
4141
}
4242

4343
foreach ($argument as $key => &$value) {
44-
if (in_array($key, ['_i_', '_ins_'])) {
44+
if (in_array($key, ['_i_', '_ins_'], true)) {
4545
$value = $this->resolvePreferenceRecursive($value, $preferences);
4646
continue;
4747
}

0 commit comments

Comments
 (0)