Skip to content

Commit 4a93f98

Browse files
committed
minor #1623 minor: cs fix (kbond)
This PR was merged into the 1.x-dev branch. Discussion ---------- minor: cs fix Commits ------- 3cb552e minor: cs fix
2 parents d2b260c + 3cb552e commit 4a93f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Util/ClassSourceManipulator.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function addEntityField(ClassProperty $mapping): void
143143
}
144144

145145
$propertyType = $typeHint;
146-
if ($propertyType && !$defaultValue && $propertyType !== 'mixed') {
146+
if ($propertyType && !$defaultValue && 'mixed' !== $propertyType) {
147147
// all property types
148148
$propertyType = '?'.$propertyType;
149149
}
@@ -162,13 +162,13 @@ public function addEntityField(ClassProperty $mapping): void
162162
// getter methods always have nullable return values
163163
// because even though these are required in the db, they may not be set yet
164164
// unless there is a default value
165-
null === $defaultValue && $propertyType !== 'mixed',
165+
null === $defaultValue && 'mixed' !== $propertyType,
166166
$commentLines
167167
);
168168

169169
// don't generate setters for id fields
170170
if (!($mapping->id ?? false)) {
171-
$this->addSetter($mapping->propertyName, $typeHint, $nullable && $propertyType !== 'mixed');
171+
$this->addSetter($mapping->propertyName, $typeHint, $nullable && 'mixed' !== $propertyType);
172172
}
173173
}
174174

0 commit comments

Comments
 (0)