Allow casts without property (#1267)

* Allow casts without property

* Update changelog
This commit is contained in:
Silvan Krähenbühl
2021-10-25 13:45:30 +02:00
committed by GitHub
parent dd12b7cdcb
commit a091b9c94a
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -392,6 +392,7 @@ class ModelsCommand extends Command
// the `$type` until the `:`
$type = strtok($type, ':');
$realType = class_exists($type) ? ('\\' . $type) : 'mixed';
$this->setProperty($name, null, true, true);
break;
}