Skip to content

Add error reporting for unresolvable types in @phpstan-assert tags #16838

Add error reporting for unresolvable types in @phpstan-assert tags

Add error reporting for unresolvable types in @phpstan-assert tags #16838

Triggered via pull request October 3, 2024 11:21
Status Failure
Total duration 10m 17s
Artifacts 28

phar.yml

on: pull_request
integration-tests  /  Check PHAR checksum
6s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
7s
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

174 errors and 5 warnings
extension-tests / Extension Tests (8.4, phpstan-nette 1.1.x)
Process completed with exit code 2.
integration-tests / Integration - ondrejmirtes/common
Process completed with exit code 1.
integration-tests / Integration - ondrejmirtes/common
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 - webmozarts/assert
Process completed with exit code 1.
integration-tests / Integration - slevomat/coding-standard
Process completed with exit code 1.
integration-tests / Integration - slevomat/coding-standard
Process completed with exit code 1.
integration-tests / Integration - doctrine/collections: lib/Doctrine/Common/Collections/AbstractLazyCollection.php#L357
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - doctrine/collections: lib/Doctrine/Common/Collections/AbstractLazyCollection.php#L369
PHPDoc tag @phpstan-assert references unknown parameter: $this
integration-tests / Integration - doctrine/collections
Process completed with exit code 1.
integration-tests / Integration - symplify/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - symplify/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - nextras/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/persistence
Process completed with exit code 1.
integration-tests / Integration - doctrine/collections: src/AbstractLazyCollection.php#L382
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - doctrine/collections: src/AbstractLazyCollection.php#L394
PHPDoc tag @phpstan-assert references unknown parameter: $this
integration-tests / Integration - doctrine/collections
Process completed with exit code 1.
integration-tests / Integration - doctrine/collections
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
integration-tests / Integration - nikic/PHP-Parser
Process completed with exit code 1.
integration-tests / Integration - nikic/PHP-Parser
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 - 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 - Rector tests
Process completed with exit code 1.
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - doctrine/dbal: src/Connection.php#L362
PHPDoc tag @phpstan-assert references unknown parameter: $this
integration-tests / Integration - doctrine/dbal
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 - 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 - sebastianbergmann/phpunit: src/Event/Events/Test/Outcome/Failed.php#L59
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Telemetry/GarbageCollectorStatus.php#L80
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/Issue/IssueTrigger.php#L48
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/Issue/IssueTrigger.php#L58
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/Issue/IssueTrigger.php#L68
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/Issue/IssueTrigger.php#L76
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/Test.php#L43
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/Test.php#L51
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/TestData/TestData.php#L34
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - sebastianbergmann/phpunit: src/Event/Value/Test/TestData/TestData.php#L42
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - Roave/BetterReflection: src/Reflection/ReflectionParameter.php#L358
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - Roave/BetterReflection
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 - slevomat/coding-standard
Process completed with exit code 1.
integration-tests / Integration - Larastan tests PHP 8.3, ^11.0
Process completed with exit code 1.
integration-tests / Integration - ondrejmirtes/orocrm-phpstan-bugreport
Process completed with exit code 1.
integration-tests / Integration - ondrejmirtes/orocrm-phpstan-bugreport
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - composer/composer: src/Composer/Util/Bitbucket.php#L240
PHPDoc tag @phpstan-assert-if-true references unknown parameter: $this
integration-tests / Integration - composer/composer
Process completed with exit code 1.
integration-tests / Integration - Sylius/Sylius
Process completed with exit code 1.
integration-tests / Integration - briannesbitt/Carbon
Process completed with exit code 1.
integration-tests / Integration - briannesbitt/Carbon
Process completed with exit code 1.
integration-tests / Integration - shopsys/shopsys
Invalid pattern 'e2e/integration/../../shopsys-project-base-baseline.neon'. Relative pathing '.' and '..' is not allowed.
integration-tests / Integration - shopsys/shopsys
Process completed with exit code 1.
integration-tests / Integration - rectorphp/rector-src
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.
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 - shopsys/shopsys
Process completed with exit code 1.
integration-tests / Integration - PrestaShop/PrestaShop
Process completed with exit code 1.
integration-tests / Integration - shopsys/shopsys
Process completed with exit code 1.
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - laravel/framework
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 - ondrejmirtes/common
No files were found with the provided path: e2e/integration/doctrine-common-baseline.neon. No artifacts will be uploaded.
integration-tests / Integration - slevomat/coding-standard
No files were found with the provided path: e2e/integration/slevomat-cs-tests-baseline.neon. No artifacts will be uploaded.
integration-tests / Integration - nikic/PHP-Parser
No files were found with the provided path: e2e/integration/php-parser-baseline.neon. No artifacts will be uploaded.
integration-tests / Integration - ondrejmirtes/orocrm-phpstan-bugreport
No files were found with the provided path: e2e/integration/orocrm-phpstan-bugreport-baseline.neon. No artifacts will be uploaded.
integration-tests / Integration - laravel/framework
No files were found with the provided path: e2e/integration/laravel-baseline.neon. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size Digest
baselines- Expired
79.4 MB
sha256:029181059d73feaf66ea346a94ab922014f76df6bc94732d8fe6f9cd178467f3
baselines-better-reflection-baseline.neon Expired
580 Bytes
sha256:c40511e070ae384e54642b9f9427611df5fe9a304181ce8ff00da66700de88b9
baselines-bladestan-baseline.neon Expired
393 Bytes
sha256:cfe63ac5744309fe8a80d766c7e50515af91ab32f1b5eb26d584689d6394a23c
baselines-carbon-baseline.neon Expired
156 Bytes
sha256:395aa26f54a66d47c4d68acc9dc69c68d7c702c484cd8d73e7cff923c006d9e4
baselines-composer-baseline.neon Expired
564 Bytes
sha256:b858890ab4227a2f1d4970e52c3be6d38b3866eda69afe776aafc80a58ca9a69
baselines-doctrine-collections-baseline.neon Expired
358 Bytes
sha256:950018eb23a9c691cfdf3753ed62e21b41e1bf79bf01ad9a31c4a69324422e26
baselines-doctrine-dbal-baseline.neon Expired
816 Bytes
sha256:feaff514d891072ab36c51e7b6a06227591b799c8a90ad25021f71dd5129d4f4
baselines-doctrine-orm-baseline.neon Expired
871 Bytes
sha256:72880ef9ae952813af274babe9435a1a1ffb3308eaa8d953440262877176b690
baselines-doctrine-persistence-baseline.neon Expired
450 Bytes
sha256:869aa68757a41208fcc0caf39b5a312e39dfa959e667d8d0052472af9bdc0f0e
baselines-drupal-baseline.neon Expired
1.61 KB
sha256:8cb1667bb0c4f84ee64a347aac12a3e16413224cd43900be1a5420fe87d49047
baselines-efabrica-phpstan-latte-baseline.neon Expired
829 Bytes
sha256:5e4870b4804adf334a23a8b28fd798f31b8d92dd82415cfd77b487f782d9b06d
baselines-larastan-baseline.neon Expired
160 Bytes
sha256:dfadc566e8477f4a7d2de325f3248dbb3749d3d06ce07f29bb74add54bcb5d80
baselines-laravel-types-baseline.neon Expired
200 Bytes
sha256:7ab8c9bccd9f1e189d3265fb4e67b37a15deb1ddfe46257c33bf9dc9446924bb
baselines-magento-baseline.neon Expired
158 Bytes
sha256:ecea0b23784045026f286daeae8a2d278d1594f4bae0ff72d9a1f29e15d213c6
baselines-nextras-baseline.neon Expired
1.33 KB
sha256:7fe2a718ff0a5b9b637055ec361220c1ce1461da622ee3b60edbc76b4bdcd4e1
baselines-phpunit-baseline.neon Expired
668 Bytes
sha256:0874de61a266d6d0d085c6a67ec05cb921a718be778815142e40cfee2613cfa6
baselines-prestashop-baseline.neon Expired
11.7 KB
sha256:7d46b21fa3c33e96921ac1a2c1c68d003be388697fceb0dc0dcffe919d481b28
baselines-react-promise-baseline.neon Expired
371 Bytes
sha256:f49c010dc88180d9b5137c8efade434dbe870817cb9fbc37a13b979b08716d39
baselines-rector-baseline.neon Expired
519 Bytes
sha256:752a243bcce37113f0780ac37634dbd5f8100606897e64fcb24c2a20bddbb44f
baselines-shopware-baseline.neon Expired
1.63 KB
sha256:69c04c6ce79099f8a2f504d85cdc443e7271d4b4080bc97e731f9788a18e3c77
baselines-slevomat-cs-baseline.neon Expired
419 Bytes
sha256:e1f3f1f72c8582f39fc5af7213769a2e74b048b2707beb5251a536f038d1bbfc
baselines-sylius-baseline.neon Expired
301 Bytes
sha256:e1f3256fc7b9803e960b485ed7c0924fc81b7cfe4854d00baae56bc1d000dd6e
baselines-symplify-baseline.neon Expired
160 Bytes
sha256:0400fa67e57fcf6fdf574a52349bb1458dfba12c5b19331eb9570737635e6aa5
baselines-webmozart-assert-baseline.neon Expired
998 Bytes
sha256:e8a3240c7967c4c285f03bb57a41f5e2080641f8ab58568ce9b9d8f34ec6c2df
phar-file Expired
3.47 MB
sha256:a12f675f5e443b6c59900182ffa2c5d9ea4d0f58fb2aec06b303aca5272fbefa
phar-file-checksum Expired
3.47 MB
sha256:f58d7f08007d0f290de37fb60cd7181900964615fe09b0cc79fc937b79718872
pocketmine-ng-baseline-8.1.neon Expired
988 Bytes
sha256:870ae08a6740373c8cfeef77fbfeb1080b1ddc07aff8a602f3950e84ee28a8c2
pocketmine-ng-baseline-8.2.neon Expired
988 Bytes
sha256:d59a549d8f1ac80147dab2e9cf7664a2a600a1fee730ab342c8ca212db5b5893