From: Vincent Vanwaelscappel Date: Mon, 24 Feb 2025 16:45:54 +0000 (+0100) Subject: #7355 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d35f1c3d13a3625d80eaf3cd5a4ee74821847fc9;p=cubist_cms-back.git #7355 --- diff --git a/src/app/Console/Commands/CubistMagicCommand.php b/src/app/Console/Commands/CubistMagicCommand.php index 73b5425..e639b44 100644 --- a/src/app/Console/Commands/CubistMagicCommand.php +++ b/src/app/Console/Commands/CubistMagicCommand.php @@ -18,9 +18,9 @@ class CubistMagicCommand extends CubistCommand $iterator = Files::getDirectoryIterator($magic, true); foreach ($iterator as $item) { - $this->line('Testing ' . $item); /** @var $item \SplFileInfo */ if ($item->isFile() && $item->getExtension() == 'php') { + $this->line('Testing ' . $item); try { $class = PHP::instanciateClassInFile($item); if ($class instanceof CubistMagicAbstractModel) {