Skip to content

Commit

Permalink
Add missing strict parameter to in_array
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif committed Oct 10, 2022
1 parent 8b5e565 commit c568675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Proxy/ProxyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ private function generateMethods(ClassMetadata $class)
if ($this->isShortIdentifierGetter($method, $class)) {
$identifier = lcfirst(substr($name, 3));
$fieldType = $class->getTypeOfField($identifier);
$cast = in_array($fieldType, ['integer', 'smallint']) ? '(int) ' : '';
$cast = in_array($fieldType, ['integer', 'smallint'], true) ? '(int) ' : '';

$methods .= ' if ($this->__isInitialized__ === false) {' . "\n";
$methods .= ' ';
Expand Down

0 comments on commit c568675

Please sign in to comment.