File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ public function addEntityField(ClassProperty $mapping): void
143
143
}
144
144
145
145
$ propertyType = $ typeHint ;
146
- if ($ propertyType && !$ defaultValue && $ propertyType !== ' mixed ' ) {
146
+ if ($ propertyType && !$ defaultValue && ' mixed ' !== $ propertyType ) {
147
147
// all property types
148
148
$ propertyType = '? ' .$ propertyType ;
149
149
}
@@ -162,13 +162,13 @@ public function addEntityField(ClassProperty $mapping): void
162
162
// getter methods always have nullable return values
163
163
// because even though these are required in the db, they may not be set yet
164
164
// unless there is a default value
165
- null === $ defaultValue && $ propertyType !== ' mixed ' ,
165
+ null === $ defaultValue && ' mixed ' !== $ propertyType ,
166
166
$ commentLines
167
167
);
168
168
169
169
// don't generate setters for id fields
170
170
if (!($ mapping ->id ?? false )) {
171
- $ this ->addSetter ($ mapping ->propertyName , $ typeHint , $ nullable && $ propertyType !== ' mixed ' );
171
+ $ this ->addSetter ($ mapping ->propertyName , $ typeHint , $ nullable && ' mixed ' !== $ propertyType );
172
172
}
173
173
}
174
174
You can’t perform that action at this time.
0 commit comments