Skip to content

Commit d89effb

Browse files
authored
Make nullable explicit for PHP 8.4
1 parent dc08f50 commit d89effb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class Config
149149
* @param string $envPrefix
150150
* The prefix for environment variables. Defaults to 'PLATFORM_'.
151151
*/
152-
public function __construct(array $environmentVariables = null, string $envPrefix = 'PLATFORM_')
152+
public function __construct(?array $environmentVariables = null, string $envPrefix = 'PLATFORM_')
153153
{
154154
$this->environmentVariables = $environmentVariables ?? getenv();
155155
$this->envPrefix = $envPrefix;
@@ -337,7 +337,7 @@ public function getPrimaryRoute() : array
337337
* @return array
338338
* An array of route definitions.
339339
*/
340-
public function getUpstreamRoutes(string $appName = null) : array
340+
public function getUpstreamRoutes(?string $appName = null) : array
341341
{
342342
return array_filter($this->routes(), function (array $route) use ($appName) {
343343
return $route['type'] == 'upstream'

0 commit comments

Comments
 (0)