From 3cb552ee0a1c474f8da9f4b1c87c60eed5e09f74 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Tue, 10 Dec 2024 18:32:20 -0500 Subject: [PATCH] minor: cs fix --- src/Util/ClassSourceManipulator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/ClassSourceManipulator.php b/src/Util/ClassSourceManipulator.php index 9930162e6..e68211223 100644 --- a/src/Util/ClassSourceManipulator.php +++ b/src/Util/ClassSourceManipulator.php @@ -143,7 +143,7 @@ public function addEntityField(ClassProperty $mapping): void } $propertyType = $typeHint; - if ($propertyType && !$defaultValue && $propertyType !== 'mixed') { + if ($propertyType && !$defaultValue && 'mixed' !== $propertyType) { // all property types $propertyType = '?'.$propertyType; } @@ -162,13 +162,13 @@ public function addEntityField(ClassProperty $mapping): void // getter methods always have nullable return values // because even though these are required in the db, they may not be set yet // unless there is a default value - null === $defaultValue && $propertyType !== 'mixed', + null === $defaultValue && 'mixed' !== $propertyType, $commentLines ); // don't generate setters for id fields if (!($mapping->id ?? false)) { - $this->addSetter($mapping->propertyName, $typeHint, $nullable && $propertyType !== 'mixed'); + $this->addSetter($mapping->propertyName, $typeHint, $nullable && 'mixed' !== $propertyType); } }