Skip to content

Fix PHPStan error for getNativeReflection #586

Fix PHPStan error for getNativeReflection

Fix PHPStan error for getNativeReflection #586

Triggered via pull request February 1, 2025 18:07
Status Failure
Total duration 27s
Artifacts

integrate.yaml

on: pull_request
Matrix: Coding Standards
Matrix: Static Code and Architecture analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 14 warnings
Static Code and Architecture analysis (8.3, highest): src/Test/TestExtractor.php#L47
Instanceof between PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum and ReflectionClass will always evaluate to true.
Static Code and Architecture analysis (8.3, highest)
Process completed with exit code 1.
Coding Standards (8.3, highest)
Process completed with exit code 8.
Coding Standards (7.4, highest)
The job was canceled because "_8_3_highest" failed.
Coding Standards (7.4, highest)
Process completed with exit code 8.
Static Code and Architecture analysis (8.2, highest)
The job was canceled because "_8_3_highest" failed.
Static Code and Architecture analysis (8.2, highest): src/Test/TestExtractor.php#L47
Instanceof between PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum and ReflectionClass will always evaluate to true.
Static Code and Architecture analysis (8.2, highest)
Process completed with exit code 1.
Static Code and Architecture analysis (8.4, highest)
The job was canceled because "_8_3_highest" failed.
Static Code and Architecture analysis (8.4, highest): src/Test/TestExtractor.php#L47
Instanceof between PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum and ReflectionClass will always evaluate to true.
Static Code and Architecture analysis (8.4, highest): src/Test/TestExtractor.php#L51
Method PHPat\Test\TestExtractor::reflectTest() should return ReflectionClass<object>|null but returns PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum.
Static Code and Architecture analysis (8.4, highest)
The operation was canceled.
Static Code and Architecture analysis (7.4, highest)
The job was canceled because "_8_3_highest" failed.
Static Code and Architecture analysis (7.4, highest): src/Test/TestExtractor.php#L47
Instanceof between PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass and ReflectionClass will always evaluate to true.
Static Code and Architecture analysis (7.4, highest)
The operation was canceled.
Static Code and Architecture analysis (8.0, highest)
The job was canceled because "_8_3_highest" failed.
Static Code and Architecture analysis (8.0, highest): src/Test/TestExtractor.php#L47
Instanceof between PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum and ReflectionClass will always evaluate to true.
Static Code and Architecture analysis (8.0, highest)
The operation was canceled.
Static Code and Architecture analysis (8.1, highest)
The job was canceled because "_8_3_highest" failed.
Tests (8.1, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Tests (8.2, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Coding Standards (8.3, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Coding Standards (7.4, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Static Code and Architecture analysis (8.3, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Tests (8.3, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Static Code and Architecture analysis (8.2, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Tests (8.0, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Static Code and Architecture analysis (7.4, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Tests (8.4, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Static Code and Architecture analysis (8.0, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Static Code and Architecture analysis (8.4, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Static Code and Architecture analysis (8.1, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
Tests (7.4, highest)
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down