File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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
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
You can’t perform that action at this time.
0 commit comments