diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 7d4fedba..76bf4e7e 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -13,45 +13,45 @@ on: # yamllint disable-line rule:truthy jobs: code-coverage: name: "Code Coverage" - uses: "phpDocumentor/.github/.github/workflows/code-coverage.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/code-coverage.yml@v0.9" with: composer-root-version: "5.x-dev" coding-standards: name: "Coding Standards" - uses: "phpDocumentor/.github/.github/workflows/coding-standards.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/coding-standards.yml@v0.9" with: composer-root-version: "5.x-dev" dependency-analysis: name: "Dependency analysis" - uses: "phpDocumentor/.github/.github/workflows/dependency-analysis.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/dependency-analysis.yml@v0.9" with: composer-root-version: "5.x-dev" lint-root: name: "Lint root" - uses: "phpDocumentor/.github/.github/workflows/lint.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/lint.yml@v0.9" with: composer-options: "--no-check-publish --ansi" static-analysis: name: "Static analysis" - uses: "phpDocumentor/.github/.github/workflows/static-analysis.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/static-analysis.yml@v0.9" with: php-extensions: "none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter, fileinfo, pcntl, posix" composer-root-version: "5.x-dev" unit-tests: name: "Unit test" - uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@v0.9" with: composer-root-version: "5.x-dev" upcoming-releases: true integration-tests: name: "Integration test" - uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@v0.8" + uses: "phpDocumentor/.github/.github/workflows/continuous-integration.yml@v0.9" with: composer-root-version: "5.x-dev" upcoming-releases: true diff --git a/src/DocBlock/Tags/InvalidTag.php b/src/DocBlock/Tags/InvalidTag.php index d84cf936..848f34d7 100644 --- a/src/DocBlock/Tags/InvalidTag.php +++ b/src/DocBlock/Tags/InvalidTag.php @@ -20,6 +20,8 @@ use function is_resource; use function sprintf; +use const PHP_VERSION_ID; + /** * This class represents an exception during the tag creation * @@ -98,9 +100,11 @@ function (array $call): array { $exception = $exception->getPrevious(); } while ($exception !== null); - if (PHP_VERSION_ID < 80100) { - $traceProperty->setAccessible(false); + if (PHP_VERSION_ID >= 80100) { + return; } + + $traceProperty->setAccessible(false); } /**