From 05d5f6f15f933123fea05f28b7b92c51912731e1 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Wed, 4 Dec 2024 12:28:18 -0500 Subject: [PATCH] event example must return array, not collection --- modules/system/console/PruneCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/console/PruneCommand.php b/modules/system/console/PruneCommand.php index ebc511beb..006da9974 100644 --- a/modules/system/console/PruneCommand.php +++ b/modules/system/console/PruneCommand.php @@ -63,7 +63,7 @@ protected function findModels(): array * Example usage: * * Event::listen('system.console.model.prune.findModels', function () { - * return collect(['example model' => '\System\Models\File']); + * return ['example model' => '\System\Models\File']; * }); * */