Skip to content

Commit

Permalink
php 8.1 issue for empty server url
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Sep 13, 2023
1 parent 8158d4c commit 4ab3c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']

steps:
## checkout the repoistory
Expand All @@ -36,7 +36,7 @@ jobs:
## run unit tests
- name: PHP Unit tests for PHP
run: vendor/bin/phpunit --verbose --configuration actions.phpunit.xml
if: matrix.php == '8.2' || matrix.php == '8.1' || matrix.php == '8.0' || matrix.php == '7.4' || matrix.php == '7.3'
if: matrix.php == '8.3' || matrix.php == '8.2' || matrix.php == '8.1' || matrix.php == '8.0' || matrix.php == '7.4' || matrix.php == '7.3'

## unit test with coverage
- name: PHP Unit tests for PHP 7.2
Expand Down
2 changes: 1 addition & 1 deletion src/base/AbstractRequestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function setEndpoint($endpoint)
*/
public function getRequestUrl()
{
$parts = [rtrim($this->client->serverUrl, '/'), $this->client->language, ltrim((string) $this->endpoint, '/')];
$parts = [rtrim((string) $this->client->serverUrl, '/'), $this->client->language, ltrim((string) $this->endpoint, '/')];

$url = implode("/", array_filter($parts));

Expand Down

0 comments on commit 4ab3c76

Please sign in to comment.