Fix slow analysis on return with a big OR condition #25423
phar.yml
on: pull_request
Compiler Tests
1m 59s
Commit PHAR
0s
Matrix: integration-tests / integration-run-phpstan
integration-tests
/
PMMP Tests
1m 14s
Matrix: integration-tests / integration-tests
Checksum PHAR
0s
PHAR Prefix Diff
0s
Matrix: extension-tests / tests-extensions
Matrix: other-tests / Other Tests
integration-tests
/
Integration - Update baselines
Annotations
43 errors and 3 warnings
|
integration-tests / Integration - efabrica-team/phpstan-latte
Process completed with exit code 1.
|
|
integration-tests / Integration - efabrica-team/phpstan-latte:
src/Resolver/ValueResolver/ValueResolver.php#L92
Parameter #2 $array of function implode expects array<string>, list<mixed> given.
|
|
integration-tests / Integration - efabrica-team/phpstan-latte:
src/Compiler/NodeVisitor/Behavior/ComponentsNodeVisitorBehavior.php (in context of class Efabrica/PHPStanLatte/Compiler/NodeVisitor/AddTypeToComponentNodeVisitor)#L76
Parameter #2 $array of function implode expects array<string>, list<mixed> given.
|
|
integration-tests / Integration - efabrica-team/phpstan-latte:
src/Compiler/Compiler/Latte3Compiler.php#L35
Call to function is_array() with list<Latte\Extension> will always evaluate to true.
|
|
integration-tests / Integration - doctrine/orm
Process completed with exit code 1.
|
|
integration-tests / Integration - doctrine/orm:
src/Mapping/ClassMetadata.php#L1449
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\AssociationMapping::fromMappingArray() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
|
|
integration-tests / Integration - doctrine/orm:
src/Mapping/ClassMetadata.php#L1448
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ManyToManyOwningSideMapping::fromMappingArrayAndNamingStrategy() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
|
|
integration-tests / Integration - doctrine/orm:
src/Mapping/ClassMetadata.php#L1440
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\OneToManyAssociationMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
|
|
integration-tests / Integration - doctrine/orm:
src/Mapping/ClassMetadata.php#L1432
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ToOneOwningSideMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
|
|
integration-tests / Integration - doctrine/orm:
src/Mapping/ClassMetadata.php#L1428
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ToOneInverseSideMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
|
|
integration-tests / Integration - doctrine/orm:
src/Mapping/ClassMetadata.php#L1422
Parameter #1 $mappingArray of static method Doctrine\ORM\Mapping\ToOneOwningSideMapping::fromMappingArrayAndName() expects array{fieldName: string, sourceEntity: class-string, targetEntity: class-string, cascade?: list<'all'|'detach'|'persist'|'refresh'|'remove'>, fetch?: 2|3|4|null, inherited?: class-string|null, declared?: class-string|null, cache?: array<mixed>|null, ...}, non-empty-array<mixed> given.
|
|
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
|
|
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
|
|
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Internal error: PHPStan\Analyser\NodeScopeResolver::processExprNode(): Argument #4 ($storage) must be of type PHPStan\Analyser\ExpressionResultStorage, Closure given, called in /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/vendor/shipmonk/phpstan-rules/src/Rule/ForbidCheckedExceptionInCallableRule.php on line 239 while analysing file /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Compatibility/BackwardCompatibilityChecker.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
|
|
integration-tests / Integration - doctrine/dbal
Process completed with exit code 1.
|
|
integration-tests / Integration - doctrine/dbal:
src/Driver/PDO/SQLSrv/Driver.php#L98
Only booleans are allowed in a ternary operator condition, mixed given.
|
|
integration-tests / PMMP Tests:
src/item/Item.php#L741
Cannot cast mixed to int.
|
|
integration-tests / PMMP Tests:
src/item/Item.php#L740
Cannot cast mixed to int.
|
|
integration-tests / PMMP Tests:
src/item/Item.php#L739
Cannot cast mixed to int.
|
|
integration-tests / PMMP Tests:
src/command/defaults/WhitelistCommand.php#L92
Parameter #2 $array of function implode expects array<string>, list<mixed> given.
|
|
integration-tests / PMMP Tests:
src/command/defaults/WhitelistCommand.php#L91
Parameter #1 $array of function sort expects an array of values castable to string, array<mixed> given.
|
|
integration-tests / PMMP Tests:
src/command/defaults/TeleportCommand.php#L101
Casting to *NEVER* something that's already *NEVER*.
|
|
integration-tests / PMMP Tests:
src/command/defaults/TeleportCommand.php#L100
Casting to *NEVER* something that's already *NEVER*.
|
|
integration-tests / PMMP Tests:
src/Server.php#L1192
Cannot cast mixed to string.
|
|
integration-tests / PMMP Tests:
src/Server.php#L758
Ignored error pattern #^Cannot cast mixed to string\.$# (cast.string) in path /home/runner/work/phpstan-src/phpstan-src/e2e/integration/repo/src/Server.php is expected to occur 1 time, but occurred 2 times.
|
|
integration-tests / PMMP Tests:
build/generate-block-serializer-consts.php#L181
Parameter #1 $array of function sort expects an array of values castable to string, array<mixed> given.
|
|
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
|
|
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
|
|
integration-tests / Integration - laravel/framework:
src/Illuminate/Mail/Mailable.php#L268
No error with identifier callable.nonNativeMethod is reported on line 268.
|
|
integration-tests / Integration - laravel/framework:
src/Illuminate/Http/Client/PendingRequest.php#L1081
Variable $shouldRetry on left side of ?? always exists and is always null.
|
|
integration-tests / Integration - laravel/framework:
src/Illuminate/Foundation/Console/RouteListCommand.php#L406
Variable $action on left side of ?? always exists and is not nullable.
|
|
integration-tests / Integration - drupal/drupal
Process completed with exit code 1.
|
|
integration-tests / Integration - drupal/drupal:
core/tests/Drupal/Tests/PerformanceTestTrait.php (in context of class Drupal/FunctionalJavascriptTests/PerformanceTestBase)#L166
Offset 'delete' on array{}|array{get: non-empty-array<*NEVER*, non-empty-list<*NEVER*>>} in isset() does not exist.
|
|
integration-tests / Integration - shopware/shopware:
tests/migration/Core/V6_6/Migration1730059142AddNewSitemapConfigForExcludingHiddenProductsTest.php#L39
Call to static method PHPUnit\Framework\Assert::assertSame() with 'core.sitemap…' and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
tests/migration/Core/V6_6/Migration1671723392AddWebhookLifetimeConfigTest.php#L40
Call to static method PHPUnit\Framework\Assert::assertSame() with '{"_value": "1209600…' and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
tests/migration/Core/V6_6/Migration1671723392AddWebhookLifetimeConfigTest.php#L39
Call to static method PHPUnit\Framework\Assert::assertSame() with 'core.webhook…' and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
tests/integration/Core/Framework/App/ShopId/ShopIdProviderTest.php#L58
Call to static method PHPUnit\Framework\Assert::assertSame() with mixed and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
tests/integration/Core/Framework/App/ShopId/ShopIdProviderTest.php#L54
Call to static method PHPUnit\Framework\Assert::assertSame() with 2 and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
tests/integration/Core/Framework/App/ShopId/ShopIdProviderTest.php#L51
Call to static method PHPUnit\Framework\Assert::assertSame() with string and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
tests/integration/Core/Framework/App/Lifecycle/AppLifecycleTest.php#L364
Call to static method PHPUnit\Framework\Assert::assertSame() with 'int' and *NEVER* will always evaluate to false.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/Framework/Feature/FeatureFlagRegistry.php#L89
Casting to bool something that's already *NEVER*.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/Checkout/Cart/LineItemFactoryRegistry.php#L99
Parameter #2 $data of method Shopware\Core\Checkout\Cart\LineItemFactoryHandler\LineItemFactoryInterface::update() expects array<string, mixed>, array<int|string, mixed> given.
|
|
integration-tests / Integration - shopware/shopware:
src/Core/Checkout/Cart/LineItemFactoryRegistry.php#L54
Parameter #1 $data of method Shopware\Core\Checkout\Cart\LineItemFactoryHandler\LineItemFactoryInterface::create() expects array<string, mixed>, array<int|string, mixed> given.
|
|
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict
composer install
cp ../../phpstan vendor/p...
Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 33431 , Maximum supported length: 32766
|
|
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict
composer install
cp ../../phpstan vendor/p...
Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 33431 , Maximum supported length: 32766
|
|
other-tests / Other Tests (7.4, windows-latest, cd e2e/name-conflict
composer install
cp ../../phpstan vendor/p...
Environment variable 'INPUT_GITHUB_CONTEXT' exceeds the maximum supported length. Environment variable length: 33431 , Maximum supported length: 32766
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
baselines-doctrine-dbal-baseline.neon
|
1010 Bytes |
sha256:20f2b0feab3513afee0d9ebc592ccbbcbfef7386b5e40ab268fcb946b113d8cf
|
|
|
baselines-doctrine-orm-baseline.neon
|
1.16 KB |
sha256:2feb81668081175a9e7537fbcc04830964c9e349859d7f24e57e7feb38edda08
|
|
|
baselines-drupal-baseline.neon
|
1.15 KB |
sha256:07db43ad4cce9e5e7143aa06272140653b6eeb39d4a158de79bdefe14e6d67bf
|
|
|
baselines-efabrica-phpstan-latte-baseline.neon
|
706 Bytes |
sha256:c4b642415d16e1ee6f2521e05a47cabdf1e8e72ce97757e11138056646dd29da
|
|
|
baselines-laravel-baseline.neon
|
384 Bytes |
sha256:7efd6bfa35426cadb59daaa8a7a1d4895fa17a18cb439776ad5bc282a0c1994e
|
|
|
baselines-rector-baseline.neon
|
685 Bytes |
sha256:b00fa5a1b50d108c9a3fb28de6e2f5b8454c4cb81a3e111d10ea7c3354417acf
|
|
|
baselines-shipmonk-dead-code-detector-baseline.neon
|
228 Bytes |
sha256:e072424a43747bb5837a6c7a3a561c1b5dfead7a5cd4608896cdc4f483fb3565
|
|
|
baselines-shopware-baseline.neon
|
10.2 KB |
sha256:0e44cf7f76ab7970aba50411f144a717e9f38a0868ce125481eee912519b315c
|
|
|
phar-file
|
3.74 MB |
sha256:cb1d4d223633243b1de6c9cea5b10ff878f5cab08b8bca8ae161e7cbdbe34227
|
|
|
phar-file-checksum
|
3.74 MB |
sha256:fd218a3d97593e73f536a1cdcb6144f0575b3032d630208f1deeedc5d90913fa
|
|
|
pocketmine-ng-baseline.neon
|
1.44 KB |
sha256:9ed4e6f192c9e1d25ad314352d481ce99e23409629a2b220c08fe2abf20f536d
|
|