- WIP on skeleton
This commit is contained in:
1 parent
fdca37a79d
commit
78d2d9d291
7 files changed
+77
-27
No files matched your search
+2
-2
@@ -102,7 +102,7 @@ class Composer
|
||||
throw new \UnexpectedValueException("Composer file 'composer.json' could not be found within your project's root folder.");
|
||||
}
|
||||
|
||||
return $content ??= file_exists($path) ? json_decode(file_get_contents($path), true) : false;
|
||||
return $content ??= file_exists($path) ? json_decode(file_get_contents($path), true, 512, \JSON_THROW_ON_ERROR) : false;
|
||||
}
|
||||
|
||||
protected static function getNamespaceFromAutoload(Event $event) : ? string
|
||||
@@ -125,7 +125,7 @@ class Composer
|
||||
|
||||
$event->getIO()->writeError("Your composer file do not seem to contains a valid psr-4 project pointing to the src folder.");
|
||||
|
||||
return null;
|
||||
return false;
|
||||
}
|
||||
|
||||
protected static function createPath(... $path) : string
|
||||
|
||||
Reference in new issue
Block a user