Skip to content

Commit c5ace26

Browse files
authored
Merge pull request #14 from platformsh/variable-no-guard
Remove guard on variables() method.
2 parents d58e713 + d8ec8ee commit c5ace26

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Config.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,8 @@ public function variable(string $name, $default = null)
277277
*/
278278
public function variables() : array
279279
{
280-
if (empty($this->variablesDef)) {
281-
throw new NotValidPlatformException('No variables are defined. Are you sure you are running on Platform.sh?');
282-
}
283-
280+
// It's valid for there to be no variables defined at all, so there's no guard
281+
// for missing values.
284282
return $this->variablesDef;
285283
}
286284

0 commit comments

Comments
 (0)