Skip to content

Report maybe division by zero in InvalidBinaryOperationRule #16611

Report maybe division by zero in InvalidBinaryOperationRule

Report maybe division by zero in InvalidBinaryOperationRule #16611

Triggered via pull request September 26, 2024 15:15
@staabmstaabm
synchronize #3419
staabm:div2
Status Failure
Total duration 11m 36s
Artifacts 15

phar.yml

on: pull_request
Compiler Tests
1m 7s
Compiler Tests
integration-tests  /  Check PHAR checksum
3s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
10s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
4s
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

79 errors
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 - bitExpert/phpstan-magento
Process completed with exit code 1.
integration-tests / Integration - bitExpert/phpstan-magento
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 - 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 - efabrica-team/phpstan-latte: src/Error/ErrorBuilder.php#L1
Ignored error pattern #^Although PHPStan\\Rules\\FileRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Error/ErrorBuilder.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Error/ErrorBuilder.php#L1
Ignored error pattern #^Although PHPStan\\Rules\\IdentifierRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Error/ErrorBuilder.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Error/ErrorBuilder.php#L1
Ignored error pattern #^Although PHPStan\\Rules\\LineRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Error/ErrorBuilder.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Error/ErrorBuilder.php#L1
Ignored error pattern #^Although PHPStan\\Rules\\MetadataRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Error/ErrorBuilder.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Error/ErrorBuilder.php#L1
Ignored error pattern #^Although PHPStan\\Rules\\NonIgnorableRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Error/ErrorBuilder.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte: src/Error/ErrorBuilder.php#L1
Ignored error pattern #^Although PHPStan\\Rules\\TipRuleError is covered by backward compatibility promise, this instanceof assumption might break because it's not guaranteed to always stay the same\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Error/ErrorBuilder.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte: src/LinkProcessor/LinkParamsProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$value of static method PhpParser\\BuilderHelpers\:\:normalizeValue\(\) expects array\|bool\|float\|int\|PhpParser\\Node\\Expr\|string\|null, mixed given\.$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/LinkProcessor/LinkParamsProcessor.php was not matched in reported errors.
integration-tests / Integration - efabrica-team/phpstan-latte
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 - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - Rector tests
Process completed with exit code 1.
integration-tests / Integration - Larastan tests PHP 8.3, ^10.28
Process completed with exit code 1.
integration-tests / Integration - sebastianbergmann/phpunit: src/TextUI/Configuration/SourceMapper.php#L33
No error with identifier assign.propertyType is reported on line 33.
integration-tests / Integration - sebastianbergmann/phpunit
Process completed with exit code 1.
integration-tests / Integration - Larastan tests PHP 8.3, ^11.0
Process completed with exit code 1.
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.
integration-tests / Integration - efabrica-team/phpstan-latte tests
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 / Integration - composer/composer: src/Composer/Command/BaseDependencyCommand.php#L251
Binary operation "%" between int and int<0, max> might result in an error.
integration-tests / Integration - composer/composer: src/Composer/Command/BaseDependencyCommand.php#L252
Binary operation "%" between int and int<0, max> might result in an error.
integration-tests / Integration - composer/composer: src/Composer/Command/ShowCommand.php#L1342
Binary operation "%" between int and int<0, max> might result in an error.
integration-tests / Integration - composer/composer: src/Composer/DependencyResolver/PoolBuilder.php#L774
Binary operation "/" between 100 and int<0, max> might result in an error.
integration-tests / Integration - composer/composer: src/Composer/Platform/Version.php#L87
Binary operation "/" between int and int might result in an error.
integration-tests / Integration - composer/composer: src/Composer/Platform/Version.php#L88
Binary operation "%" between int and int might result in an error.
integration-tests / Integration - composer/composer: src/Composer/Platform/Version.php#L88
Binary operation "/" between int and int might result in an error.
integration-tests / Integration - composer/composer: src/Composer/Platform/Version.php#L89
Binary operation "%" between int and int might result in an error.
integration-tests / Integration - composer/composer
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:7c99f33467e1db0336e42a330a5f273b98c1b8ae65e31e472ad9c9e92c417296
baselines-composer-baseline.neon Expired
621 Bytes
sha256:52e733bc3f04643b9e162c1949cc9fd694b8cb8b63ce27b0b4fb88e1fae52412
baselines-drupal-baseline.neon Expired
1.61 KB
sha256:b2ee16440c741f14cd3f3d4e2ca4f323dc60151e661ab569c03b2dfc5bf62ac2
baselines-efabrica-phpstan-latte-baseline.neon Expired
829 Bytes
sha256:77f75a00fcb4a42156c46b383ef3f70b08c0fa6a55bc235c013a4c475759a2e9
baselines-larastan-baseline.neon Expired
160 Bytes
sha256:eb712195ab2fb4487792218e85111b51eb2557cd3e4aa5c72030a467301019dd
baselines-laravel-types-baseline.neon Expired
200 Bytes
sha256:0e255712f6dee6c8f85263e2730f20142dd34670afa0c9a223825dc6bc303d11
baselines-magento-baseline.neon Expired
158 Bytes
sha256:9825506cf48b85957b4bf54becfb2457467c81819ab9f761944075dce658d424
baselines-phpunit-baseline.neon Expired
188 Bytes
sha256:fe7f66ba81c7e4dec61507f50d32db62b369e7aa4d821bb54e741423fcbab3e7
baselines-prestashop-baseline.neon Expired
11.7 KB
sha256:9f72dc1f13e19b7fa188849fa659155b010102199cbf94e7e0cf9bf5222d0da3
baselines-react-promise-baseline.neon Expired
371 Bytes
sha256:58a8dea75ab3b54723a8b7f9ee60da24043ffd81b5998ad037c32af33bb31c03
baselines-shopware-baseline.neon Expired
1.63 KB
sha256:5f6b430f9e10e30c826911f94ddde1e9980e01fc5ae4f4afdf46396fafea8117
phar-file Expired
3.47 MB
sha256:3c6af0ad0fef89f82b1d2e8be2382c3971c010caaa20706d546089dc2e08c00c
phar-file-checksum Expired
3.47 MB
sha256:e8a96feb72a6b206ac7973b7524547c53417e91f8ed36b38c3a91bc92bcabcd9
pocketmine-ng-baseline-8.1.neon Expired
988 Bytes
sha256:78f42bb4d1e6075086723e699784c4321f4caaff7467e9059e71a496e40dfb0d
pocketmine-ng-baseline-8.2.neon Expired
988 Bytes
sha256:a5bbecf808b668308272c513bd04f86b54a59b77d4091f41abdf84122142f5ae