diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba177a8..628097d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,8 +8,9 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: + fail-fast: false matrix: php-versions: - 7.2 @@ -18,10 +19,13 @@ jobs: - 8.0 - 8.1 - 8.2 + - 8.3 + - 8.4 + - 8.5 name: PHP ${{ matrix.php-versions }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v6 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -34,6 +38,3 @@ jobs: - name: Run tests run: vendor/bin/simple-phpunit --coverage-text --coverage-clover=coverage.clover - -# - name: Upload code coverage -# run: vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bfb48db..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: php - -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - -# This triggers builds to run on the new TravisCI infrastructure. -# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ -sudo: false - -before_script: - - travis_retry composer self-update - - travis_retry composer install ${COMPOSER_FLAGS} --no-interaction - -script: - - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover - -after_script: - - if [[ $TRAVIS_PHP_VERSION == '7.3' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi diff --git a/composer.json b/composer.json index 3ba1176..d2e1a48 100644 --- a/composer.json +++ b/composer.json @@ -23,8 +23,7 @@ "wingu/reflection": "~1.0" }, "require-dev": { - "symfony/phpunit-bridge": "^6.0", - "scrutinizer/ocular": "~1.1" + "symfony/phpunit-bridge": "^6.0" }, "autoload": { "psr-4": { diff --git a/src/PHPClass2WSDL.php b/src/PHPClass2WSDL.php index 8b2419a..c056da7 100644 --- a/src/PHPClass2WSDL.php +++ b/src/PHPClass2WSDL.php @@ -250,7 +250,7 @@ protected function addMethodToWsdl(ReflectionMethod $method, DOMElement $port, D // Add any documentation for the operation. $description = $method->getReflectionDocComment()->getFullDescription(); - if (strlen($description) > 0) { + if ($description !== null && strlen($description) > 0) { $this->wsdl->addDocumentation($portOperation, $description); }