Skip to content

Commit

Permalink
Fix sumup#40: Separator has to be first
Browse files Browse the repository at this point in the history
In php 8 the separator needs to be the first argument to implode() - in php 7 and earlier, it could be both first and last.
  • Loading branch information
gartner authored Apr 9, 2023
1 parent 0d9aa0d commit be2a93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SumUp/Application/ApplicationConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ protected function setAppSecret($appSecret)
protected function setGrantType($grantType)
{
if (!in_array($grantType, $this::GRANT_TYPES)) {
throw new SumUpConfigurationException('Invalid parameter for "grant_type". Allowed values are: ' . implode($this::GRANT_TYPES, ' | ') . '.');
throw new SumUpConfigurationException('Invalid parameter for "grant_type". Allowed values are: ' . implode(' | ', $this::GRANT_TYPES) . '.');
}
$this->grantType = $grantType;
}
Expand Down

0 comments on commit be2a93d

Please sign in to comment.