Skip to content

Commit ec0bb3f

Browse files
authored
Fixed bug that ConfirmableTrait::isShouldConfirm() does not work. (#5045)
1 parent 525abc7 commit ec0bb3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ConfirmableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public function confirmToProceed(string $warning = 'Application In Production!',
4848
protected function isShouldConfirm(): bool
4949
{
5050
return is_callable(['Composer\InstalledVersions', 'getRootPackage'])
51-
&& \Composer\InstalledVersions::getRootPackage()['dev'] === false;
51+
&& (\Composer\InstalledVersions::getRootPackage()['dev'] ?? false) === false;
5252
}
5353
}

0 commit comments

Comments
 (0)