Skip to content

get_defined_vars() return type contains know variables #18693

get_defined_vars() return type contains know variables

get_defined_vars() return type contains know variables #18693

Triggered via pull request November 11, 2024 16:20
Status Failure
Total duration 5m 54s
Artifacts 1

static-analysis.yml

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

Annotations

65 errors and 3 warnings
PHPStan with result cache (8.2): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan with result cache (8.2): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan with result cache (8.2): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan with result cache (8.2)
Process completed with exit code 2.
PHPStan with result cache (8.1): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan with result cache (8.1): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan with result cache (8.1): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan with result cache (8.1)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.1, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.1, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.2, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.2, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
Generate baseline
Process completed with exit code 1.
PHPStan with result cache (8.3): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan with result cache (8.3): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan with result cache (8.3): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.4, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.4, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.4): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan with result cache (8.4): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan with result cache (8.4): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.0, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.0, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.3, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.3, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.3, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.4, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.4, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.4, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.3, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.3, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.1, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.1, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.2, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.2, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.2, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (7.4, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (7.4, ubuntu-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (8.0, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (8.0, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType given.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L24
Method PHPStan\Type\Php\GetDefinedVarsFunctionReturnTypeExtension::getTypeFromFunctionCall() never returns null so it can be removed from the return type.
PHPStan (7.4, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Instantiated class PHPStan\Type\Php\StringType not found.
PHPStan (7.4, windows-latest): src/Type/Php/GetDefinedVarsFunctionReturnTypeExtension.php#L28
Parameter #1 $keyType of class PHPStan\Type\ArrayType constructor expects PHPStan\Type\Type, PHPStan\Type\Php\StringType 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/
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/
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/

Artifacts

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