Skip to content

Commit 442b21b

Browse files
committed
🩹 Ensure assets() recieves an array
1 parent 6f95562 commit 442b21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AcfComposer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected function handleBlocks(): void
201201
}
202202

203203
if (is_admin() || has_block($composer->namespace)) {
204-
method_exists($composer, 'assets') && $composer->assets($composer->block);
204+
method_exists($composer, 'assets') && $composer->assets((array) $composer->block ?? []);
205205
}
206206
}
207207
}

0 commit comments

Comments
 (0)