Skip to content

Commit

Permalink
Merge pull request #996 from deguif/missing-strict-parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire authored Oct 10, 2022
2 parents 8b5e565 + c568675 commit 139896f
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 139896f

Please sign in to comment.