Skip to content

Fix PHP 8

Fix PHP 8 #17

Triggered via pull request January 13, 2024 14:04
Status Failure
Total duration 1m 1s
Artifacts 3

diagnostics.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 3 warnings
PHP 8.2: src/EventListener/DataContainer/ArticleDataContainerListener.php#L112
Operation must be bracketed (reported by phpcs: Squiz.Formatting.OperatorBracket.MissingBrackets)
PHP 8.2: src/Functions/DepthFunction.php#L82
PossiblyNullPropertyFetch: Cannot get property on possibly null variable $page of type Contao\PageModel|null (reported by psalm)
PHP 8.2: src/Functions/DepthFunction.php#L82
PossiblyNullPropertyFetch: Cannot get property on possibly null variable $page of type Contao\PageModel|null (reported by psalm)
PHP 8.2: src/Functions/RootFunction.php#L78
PossiblyNullPropertyFetch: Cannot get property on possibly null variable $rootPage of type Contao\PageModel|null (reported by psalm)
PHP 8.2: src/Renderer/PageModuleRenderer.php#L307
Trailing commas are not allowed in function calls in PHP 7.2 or earlier (reported by php-compatibility: PHPCompatibility.Syntax.NewFunctionCallTrailingComma.FoundInFunctionCall)
PHP 8.2
Process completed with exit code 1.
PHP 7.4: src/EventListener/DataContainer/ArticleDataContainerListener.php#L112
InvalidArgument: Isset only works with variables and array elements (reported by psalm)
PHP 7.4: src/EventListener/DataContainer/ArticleDataContainerListener.php#L112
Operation must be bracketed (reported by phpcs: Squiz.Formatting.OperatorBracket.MissingBrackets)
PHP 7.4: src/Renderer/PageModuleRenderer.php#L307
Trailing commas are not allowed in function calls in PHP 7.2 or earlier (reported by php-compatibility: PHPCompatibility.Syntax.NewFunctionCallTrailingComma.FoundInFunctionCall)
PHP 7.4
Process completed with exit code 1.
PHP 8.1: src/EventListener/DataContainer/ArticleDataContainerListener.php#L112
InvalidArgument: Isset only works with variables and array elements (reported by psalm)
PHP 8.1: src/EventListener/DataContainer/ArticleDataContainerListener.php#L112
Operation must be bracketed (reported by phpcs: Squiz.Formatting.OperatorBracket.MissingBrackets)
PHP 8.1: src/Functions/DepthFunction.php#L82
PossiblyNullPropertyFetch: Cannot get property on possibly null variable $page of type Contao\PageModel|null (reported by psalm)
PHP 8.1: src/Functions/DepthFunction.php#L82
PossiblyNullPropertyFetch: Cannot get property on possibly null variable $page of type Contao\PageModel|null (reported by psalm)
PHP 8.1: src/Functions/RootFunction.php#L78
PossiblyNullPropertyFetch: Cannot get property on possibly null variable $rootPage of type Contao\PageModel|null (reported by psalm)
PHP 8.1: src/Renderer/PageModuleRenderer.php#L307
Trailing commas are not allowed in function calls in PHP 7.2 or earlier (reported by php-compatibility: PHPCompatibility.Syntax.NewFunctionCallTrailingComma.FoundInFunctionCall)
PHP 8.1
Process completed with exit code 1.
PHP 8.2: composer.json#L1
Did not understand the following tool output: > pre-command-run: Contao\ManagerPlugin\Composer\ArtifactsPlugin->preCommandRun (reported by composer-normalize)
PHP 7.4: composer.json#L1
Did not understand the following tool output: > pre-command-run: Contao\ManagerPlugin\Composer\ArtifactsPlugin->preCommandRun (reported by composer-normalize)
PHP 8.1: composer.json#L1
Did not understand the following tool output: > pre-command-run: Contao\ManagerPlugin\Composer\ArtifactsPlugin->preCommandRun (reported by composer-normalize)

Artifacts

Produced during runtime
Name Size
phpcq-builds-php-7.4 Expired
12.1 KB
phpcq-builds-php-8.1 Expired
13.8 KB
phpcq-builds-php-8.2 Expired
13.3 KB