Skip to content

Commit 4a56791

Browse files
minor #53073 Set strict parameter of in_array to true where possible (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- Set `strict` parameter of `in_array` to true where possible | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT This pull request introduces a comprehensive update where the `in_array` function is now consistently invoked with the `strict` parameter set to `true`. This change is implemented across various components of the framework to enhance type safety and reliability. To me, this update is a step towards more explicit and error-resistant code. Commits ------- 442329a50f Set `strict` parameter of `in_array` to true where possible
2 parents 472549d + 1cec904 commit 4a56791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Generator/RegionDataGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ private function generateAlpha2ToNumericMapping(ArrayAccessibleResourceBundle $m
242242
continue;
243243
}
244244

245-
if (\in_array($alias, self::WITHDRAWN_CODES)) {
245+
if (\in_array($alias, self::WITHDRAWN_CODES, true)) {
246246
continue;
247247
}
248248

0 commit comments

Comments
 (0)