Skip to content

Commit eb01d77

Browse files
committed
fix: add isset check to prevent notices
1 parent 562fc55 commit eb01d77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ProjectConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function __destruct()
7070
*/
7171
public function addEnvironment(string $environment, ?array $options = null)
7272
{
73-
if ('bedrock' === $this->configuration['type']) {
73+
if (isset($this->configuration['type']) && 'bedrock' === $this->configuration['type']) {
7474
$options = array_merge(['build' => ['COMPOSER_MIRROR_PATH_REPOS=1 composer install']], (array) $options);
7575
}
7676

0 commit comments

Comments
 (0)