Skip to content

Commit 139896f

Browse files
authored
Merge pull request #996 from deguif/missing-strict-parameter
2 parents 8b5e565 + c568675 commit 139896f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Proxy/ProxyGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ private function generateMethods(ClassMetadata $class)
940940
if ($this->isShortIdentifierGetter($method, $class)) {
941941
$identifier = lcfirst(substr($name, 3));
942942
$fieldType = $class->getTypeOfField($identifier);
943-
$cast = in_array($fieldType, ['integer', 'smallint']) ? '(int) ' : '';
943+
$cast = in_array($fieldType, ['integer', 'smallint'], true) ? '(int) ' : '';
944944

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

0 commit comments

Comments
 (0)