Skip to content

Allow mixed type dynamic constants #18478

Allow mixed type dynamic constants

Allow mixed type dynamic constants #18478

Triggered via pull request October 27, 2024 17:01
Status Failure
Total duration 3m 49s
Artifacts 1

static-analysis.yml

on: pull_request
Generate baseline
1m 21s
Generate baseline
Generate PHP baseline
1m 22s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

49 errors and 3 warnings
PHPStan with result cache (8.1): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan with result cache (8.1): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan with result cache (8.1)
Process completed with exit code 2.
PHPStan with result cache (8.2): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan with result cache (8.2): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.4): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan with result cache (8.4): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.3, ubuntu-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.3): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan with result cache (8.3): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan with result cache (8.3)
Process completed with exit code 2.
Generate baseline
Process completed with exit code 1.
PHPStan (8.1, ubuntu-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.1, ubuntu-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.4, ubuntu-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.0, ubuntu-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.2, ubuntu-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): src/Analyser/MutatingScope.php#L5665
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (7.4, ubuntu-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L51
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.1, windows-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.1, windows-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.4, windows-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.4, windows-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.3, windows-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.2, windows-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): src/Analyser/MutatingScope.php#L5704
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (8.0, windows-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L62
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): src/Analyser/MutatingScope.php#L5665
Method PHPStan\Analyser\MutatingScope::getConstantExplicitTypeFromConfig() never returns null so it can be removed from the return type.
PHPStan (7.4, windows-latest): src/Type/Php/DefineConstantTypeSpecifyingExtension.php#L51
Parameter #2 $type of method PHPStan\Analyser\TypeSpecifier::create() expects PHPStan\Type\Type, PHPStan\Type\Type|null given.
PHPStan (7.4, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "transformed-src". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
PHPStan (7.4, windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Artifacts

Produced during runtime
Name Size Digest
transformed-src Expired
4.15 MB