We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d58e713 commit d8ec8eeCopy full SHA for d8ec8ee
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