Skip to content

Commit 7770463

Browse files
committed
[FIX] Scan Packages via Tailwind.
1 parent 8086fe3 commit 7770463

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

core/src/Console/TailwindBuildCommand.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ private function discoverPackages(): array
6565

6666
/* -------------------- core/vendor/<vendor>/<pkg>/css -------------------- */
6767
$root = EVO_CORE_PATH . 'vendor';
68-
if (is_dir($root)) {
69-
foreach (scandir($root) as $vendor) {
68+
if (is_dir($root) && ($vendors = scandir($root))) {
69+
foreach ($vendors as $vendor) {
7070
if ($vendor[0] === '.') continue;
7171
$vendorPath = "{$root}/{$vendor}";
72-
foreach (scandir($vendorPath) as $pkg) {
72+
if (!is_dir($vendorPath)) continue;
73+
$packages = scandir($vendorPath);
74+
if (!is_array($packages)) continue;
75+
foreach ($packages as $pkg) {
7376
if ($pkg[0] === '.') continue;
7477
$base = "{$vendorPath}/{$pkg}/";
7578

0 commit comments

Comments
 (0)