Skip to content

Fix false positive when type casting in IF statement #16146

Fix false positive when type casting in IF statement

Fix false positive when type casting in IF statement #16146

Triggered via pull request September 11, 2024 07:41
Status Failure
Total duration 7m 23s
Artifacts 12
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
3s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
6s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
3s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Matrix: integration-tests / integration-run-phpstan
Matrix: integration-tests / integration-tests
Matrix: integration-tests / PMMP Tests
Matrix: extension-tests / Extension Tests
Matrix: other-tests / Other Tests
integration-tests  /  Integration - Update baselines
0s
integration-tests / Integration - Update baselines
Fit to window
Zoom out
Zoom in

Annotations

65 errors
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - TomasVotruba/bladestan: src/Compiler/PhpContentExtractor.php#L35
Unreachable statement - code above always terminates.
integration-tests / Integration - TomasVotruba/bladestan: src/TemplateCompiler/Rules/TemplateRulesRegistry.php#L15
Class TomasVotruba\Bladestan\TemplateCompiler\Rules\TemplateRulesRegistry extends @Final class PHPStan\Rules\DirectRegistry.
integration-tests / Integration - TomasVotruba/bladestan
Process completed with exit code 1.
integration-tests / Integration - reactphp/promise: src/Internal/FulfilledPromise.php#L61
Method React\Promise\Internal\FulfilledPromise::finally() should return React\Promise\PromiseInterface<T> but returns React\Promise\PromiseInterface<(T of mixed)|null>.
integration-tests / Integration - reactphp/promise: src/Promise.php#L99
Method React\Promise\Promise::finally() should return React\Promise\PromiseInterface<T> but returns React\Promise\PromiseInterface<(T of mixed)|null>.
integration-tests / Integration - reactphp/promise
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal
Process completed with exit code 1.
integration-tests / Integration - drupal/drupal
Process completed with exit code 1.
integration-tests / Integration - larastan/larastan: stubs/10.0.0/Contracts/Database/Eloquent.stub#L10
PHPDoc tag @mixin contains generic class Illuminate\Database\Eloquent\Builder but does not specify its types: TModelClass
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L12
PHPDoc tag @mixin contains unknown class Illuminate\Contracts\Redis\Factory.
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L12
PHPDoc tag @mixin contains unknown class Illuminate\Redis\RedisManager.
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L19
PHPDoc tag @mixin contains unknown class Illuminate\Database\Connection.
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L19
PHPDoc tag @mixin contains unknown class Illuminate\Database\ConnectionInterface.
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L19
PHPDoc tag @mixin contains unknown class Illuminate\Database\DatabaseManager.
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L25
PHPDoc tag @mixin contains unknown class Illuminate\Queue\Queue.
integration-tests / Integration - larastan/larastan: stubs/common/Facades.stub#L25
PHPDoc tag @mixin contains unknown class Illuminate\Queue\QueueManager.
integration-tests / Integration - larastan/larastan: stubs/common/Log/Logger.stub#L13
PHPDoc tag @mixin contains unknown class Monolog\Logger.
integration-tests / Integration - larastan/larastan: stubs/common/Pagination.stub#L10
Type mixed in generic type Illuminate\Support\Collection<mixed, mixed> in PHPDoc tag @mixin is not subtype of template type TKey of (int|string) of class Illuminate\Support\Collection.
integration-tests / Integration - larastan/larastan
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware
Process completed with exit code 1.
integration-tests / Integration - shopware/shopware
Process completed with exit code 1.
integration-tests / Integration - bitExpert/phpstan-magento
Process completed with exit code 1.
integration-tests / Integration - bitExpert/phpstan-magento
Process completed with exit code 1.
integration-tests / Integration - Larastan tests PHP 8.3, ^11.0
Process completed with exit code 1.
extension-tests / Extension Tests (8.4, phpstan-nette 1.1.x)
Process completed with exit code 2.
integration-tests / PMMP Tests (8.2, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L117
Offset 1 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.2, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L121
Offset 2 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.2, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/utils/Git.php#L42
Strict comparison using !== between string and false will always evaluate to true.
integration-tests / PMMP Tests (8.1, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L117
Offset 1 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.1, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/MemoryManager.php#L121
Offset 2 does not exist on array{0?: string, 1?: numeric-string, 2?: 'G'|'g'|'K'|'k'|'M'|'m'}.
integration-tests / PMMP Tests (8.1, git clone https://github.com/pmmp/PocketMine-MP.git e2e/integration/repo cd e2e/...: src/utils/Git.php#L42
Strict comparison using !== between string and false will always evaluate to true.
extension-tests / Extension Tests (8.2, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (8.1, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (8.4, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (7.3, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (8.0, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (7.2, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (8.3, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
extension-tests / Extension Tests (7.4, phpstan-strict-rules 1.6.x)
Process completed with exit code 2.
integration-tests / Integration - efabrica-team/phpstan-latte tests
Process completed with exit code 1.
integration-tests / Integration - PrestaShop/PrestaShop: config/config.inc.php#L70
Path in include_once() "/home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/config/settings_custom.inc.php" is not a file or it does not exist.
integration-tests / Integration - PrestaShop/PrestaShop: config/smarty.config.inc.php#L44
Path in include() "/home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/classes/Smarty/SmartyCacheResourceMysql.php" is not a file or it does not exist.
integration-tests / Integration - PrestaShop/PrestaShop
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
baselines-bladestan-baseline.neon Expired
393 Bytes
sha256:d35036633948efc1b411fcd6ee6e32eaaff1c8f7aeff8e80ee35f5aa2c5f0b95
baselines-drupal-baseline.neon Expired
1.61 KB
sha256:9ce36c605e0d6272e3446502e9654cf2c58cea2bb822715c6488a9fa7f4edd91
baselines-larastan-baseline.neon Expired
160 Bytes
sha256:d865b67ccd91c04100308c22b92054d15f7c487895712babb94dc2a920ce4f30
baselines-laravel-types-baseline.neon Expired
200 Bytes
sha256:feea96db2fd85d4d8d6355288f6e46a7e8875c302aa23736fe8bcba28c3c165a
baselines-magento-baseline.neon Expired
158 Bytes
sha256:200c82076d42fdc57cbaa9f4e9dfa70b4771a2318b441b870eed454427bec4f9
baselines-prestashop-baseline.neon Expired
11.6 KB
sha256:477ea5a54840bccc4cd8d7d631c72dd8a0c8317d3d97ff021b13bc7456128c48
baselines-react-promise-baseline.neon Expired
371 Bytes
sha256:d841ea7279c23c480d892d094d989260c5b48588d72afb1e195866fd015aebfb
baselines-shopware-baseline.neon Expired
1.63 KB
sha256:7ff683af4959193f66eea8ea76fb6d08e12f16ff54a9a305772a34e8d173dfd6
phar-file Expired
3.46 MB
sha256:a4dfc77076ab62998c5fec60d996157cb82664a54473a9ee57142f0af4c5a5df
phar-file-checksum Expired
3.46 MB
sha256:59f40c1240a9a4c3c5da375e230cb6162bb65f7123eef5988663af9010d98252
pocketmine-ng-baseline-8.1.neon Expired
988 Bytes
sha256:aa734f5ac87cde585c1980f9120aeda204b84354c336b2c379ee29601ef4ede6
pocketmine-ng-baseline-8.2.neon Expired
988 Bytes
sha256:aa734f5ac87cde585c1980f9120aeda204b84354c336b2c379ee29601ef4ede6