diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 45fa04e..c49af12 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml - name: Run Coveralls env: - XDEBUG_MODE: coverage + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml unit_tests_81: @@ -54,7 +54,3 @@ jobs: env: XDEBUG_MODE: coverage run: ./vendor/bin/phpunit --coverage-clover build/logs/coverage.xml - - name: Run Coveralls - env: - XDEBUG_MODE: coverage - run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml diff --git a/src/Runtime/Runtime.php b/src/Runtime/Runtime.php index ba483f5..571aebd 100644 --- a/src/Runtime/Runtime.php +++ b/src/Runtime/Runtime.php @@ -441,7 +441,7 @@ class Runtime */ public function getHostPort(): ?int { - $info = explode(':', $this->getWorkingHost()); + $info = explode(':', strval($this->getWorkingHost())); return isset($info[1]) ? intval($info[1]) : null; } @@ -450,7 +450,7 @@ class Runtime */ public function getHostName(): ?string { - if (strpos($this->getWorkingHost(), ':') === false) { + if (strpos(strval($this->getWorkingHost()), ':') === false) { return $this->getWorkingHost(); }