From 23b179432163efe20466485e2cba9e41d919fe64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Monta=C3=B1ez?= Date: Sun, 10 Apr 2022 01:41:27 -0300 Subject: [PATCH] [Galactica] V5 - tests --- .github/workflows/tests.yml | 6 +----- src/Runtime/Runtime.php | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) 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(); }