diff --git a/src/Utils/ScalarBeanPropertyDescriptor.php b/src/Utils/ScalarBeanPropertyDescriptor.php index e965569c..8835706e 100644 --- a/src/Utils/ScalarBeanPropertyDescriptor.php +++ b/src/Utils/ScalarBeanPropertyDescriptor.php @@ -224,7 +224,7 @@ public function getGetterSetterCode(): array if ($normalizedType === 'resource') { $checkNullable = ''; if ($isNullable) { - $checkNullable = sprintf('$%s !== null && ', $this->column->getName()); + $checkNullable = sprintf('$%s !== null && ', $variableName); } $resourceTypeCheck .= <<