mirror of
https://github.com/opdavies/versa.git
synced 2025-01-22 19:47:33 +00:00
Make dev dependencies an empty array if none are
...present
This commit is contained in:
parent
084f6fb3c7
commit
72dea5070b
|
@ -20,8 +20,7 @@ final class TestCommand extends AbstractCommand
|
|||
associative: true,
|
||||
);
|
||||
|
||||
// TODO: what if there are no dev dependencies?
|
||||
$devDependencies = array_keys($json['require-dev']);
|
||||
$devDependencies = array_keys($json['require-dev'] ?? []);
|
||||
|
||||
// TODO: Pest and Behat.
|
||||
if (in_array(needle: 'brianium/paratest', haystack: $devDependencies, strict: true)) {
|
||||
|
|
Loading…
Reference in a new issue