Skip to content

Commit 0f30028

Browse files
committed
ScalarBeanPropertyDescriptor: Fix variable for resource null check
1 parent 12eaeca commit 0f30028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/ScalarBeanPropertyDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function getGetterSetterCode(): array
224224
if ($normalizedType === 'resource') {
225225
$checkNullable = '';
226226
if ($isNullable) {
227-
$checkNullable = sprintf('$%s !== null && ', $this->column->getName());
227+
$checkNullable = sprintf('$%s !== null && ', $variableName);
228228
}
229229
$resourceTypeCheck .= <<<EOF
230230
if (%s!\is_resource($%s)) {

0 commit comments

Comments
 (0)