Skip to content

Commit fef8bcb

Browse files
authored
Merge pull request #28 from ptmkenny/patch-1
Make nullable explicit for PHP 8.4
2 parents dc08f50 + d89effb commit fef8bcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)