We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8086fe3 commit 7770463Copy full SHA for 7770463
1 file changed
core/src/Console/TailwindBuildCommand.php
@@ -65,11 +65,14 @@ private function discoverPackages(): array
65
66
/* -------------------- core/vendor/<vendor>/<pkg>/css -------------------- */
67
$root = EVO_CORE_PATH . 'vendor';
68
- if (is_dir($root)) {
69
- foreach (scandir($root) as $vendor) {
+ if (is_dir($root) && ($vendors = scandir($root))) {
+ foreach ($vendors as $vendor) {
70
if ($vendor[0] === '.') continue;
71
$vendorPath = "{$root}/{$vendor}";
72
- foreach (scandir($vendorPath) as $pkg) {
+ if (!is_dir($vendorPath)) continue;
73
+ $packages = scandir($vendorPath);
74
+ if (!is_array($packages)) continue;
75
+ foreach ($packages as $pkg) {
76
if ($pkg[0] === '.') continue;
77
$base = "{$vendorPath}/{$pkg}/";
78
0 commit comments