Skip to content

Fix incorrect type inference for @phpstan-assert-if-true on $this with union types #22121

Fix incorrect type inference for @phpstan-assert-if-true on $this with union types

Fix incorrect type inference for @phpstan-assert-if-true on $this with union types #22121

Triggered via pull request August 21, 2025 15:53
Status Failure
Total duration 15m 40s
Artifacts

tests.yml

on: pull_request
Determine levels tests matrix
31s
Determine levels tests matrix
Matrix: Integration tests
Matrix: Tests with old PHPUnit
Matrix: Tests
Matrix: Levels tests
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 8 notices
Tests with old PHPUnit (8.0, ubuntu-latest)
Process completed with exit code 2.
Tests (8.2, ubuntu-latest)
Process completed with exit code 2.
Tests with old PHPUnit (8.1, ubuntu-latest)
Process completed with exit code 2.
Tests (8.4, ubuntu-latest)
Process completed with exit code 2.
Tests (8.3, ubuntu-latest)
Process completed with exit code 2.
Tests with old PHPUnit (8.0, windows-latest)
Process completed with exit code 1.
Tests (8.2, windows-latest)
Process completed with exit code 1.
Tests (8.3, windows-latest)
Process completed with exit code 1.
Tests with old PHPUnit (8.1, windows-latest)
Process completed with exit code 1.
Tests (8.4, windows-latest)
Process completed with exit code 1.
Tests (8.5, windows-latest)
Process completed with exit code 1.
Tests (8.5, ubuntu-latest)
Process completed with exit code 2.
Levels tests (php vendor/bin/phpunit 'tests/PHPStan/Levels/LevelsIntegrationTest.php' --filter 'P...
The job was not acquired by Runner of type hosted even after multiple attempts
Levels tests (php vendor/bin/phpunit 'tests/PHPStan/Generics/GenericsIntegrationTest.php' --filte...
The job was not acquired by Runner of type hosted even after multiple attempts
Tests
Internal server error. Correlation ID: bc287c49-958e-4a1d-8acc-7c834b2afd53
Integration tests (windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests with old PHPUnit (8.0, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests (8.2, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests (8.3, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests with old PHPUnit (8.1, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests (8.4, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests (8.5, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677
Tests with old PHPUnit (7.4, windows-latest)
The windows-latest label will migrate from Windows Server 2022 to Windows Server 2025 beginning September 2, 2025. For more information see https://github.com/actions/runner-images/issues/12677