Skip to content

Commit

Permalink
Merge pull request #28 from ptmkenny/patch-1
Browse files Browse the repository at this point in the history
Make nullable explicit for PHP 8.4
gilzow authored Nov 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents dc08f50 + d89effb commit fef8bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ class Config
* @param string $envPrefix
* The prefix for environment variables. Defaults to 'PLATFORM_'.
*/
public function __construct(array $environmentVariables = null, string $envPrefix = 'PLATFORM_')
public function __construct(?array $environmentVariables = null, string $envPrefix = 'PLATFORM_')
{
$this->environmentVariables = $environmentVariables ?? getenv();
$this->envPrefix = $envPrefix;
@@ -337,7 +337,7 @@ public function getPrimaryRoute() : array
* @return array
* An array of route definitions.
*/
public function getUpstreamRoutes(string $appName = null) : array
public function getUpstreamRoutes(?string $appName = null) : array
{
return array_filter($this->routes(), function (array $route) use ($appName) {
return $route['type'] == 'upstream'

0 comments on commit fef8bcb

Please sign in to comment.