Upgrade to 3.8.0
This commit is contained in:
@@ -46,7 +46,7 @@ class Structure extends Collection
|
||||
*/
|
||||
public function __set(string $id, $props): void
|
||||
{
|
||||
if (is_a($props, 'Kirby\Cms\StructureObject') === true) {
|
||||
if ($props instanceof StructureObject) {
|
||||
$object = $props;
|
||||
} else {
|
||||
if (is_array($props) === false) {
|
||||
|
||||
Reference in New Issue
Block a user