We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d58e713 + d8ec8ee commit c5ace26Copy full SHA for c5ace26
1 file changed
src/Config.php
@@ -277,10 +277,8 @@ public function variable(string $name, $default = null)
277
*/
278
public function variables() : array
279
{
280
- if (empty($this->variablesDef)) {
281
- throw new NotValidPlatformException('No variables are defined. Are you sure you are running on Platform.sh?');
282
- }
283
-
+ // It's valid for there to be no variables defined at all, so there's no guard
+ // for missing values.
284
return $this->variablesDef;
285
}
286
0 commit comments