Skip to content

Fix PHP 8

Fix PHP 8 #18

Triggered via pull request January 13, 2024 14:10
@zonky2zonky2
synchronize #52
zonky2-patch-1
Status Failure
Total duration 1m 10s
Artifacts 3

diagnostics.yml

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

Annotations

12 errors and 3 warnings
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: 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/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: composer.json#L1
Did not understand the following tool output: > pre-command-run: Contao\ManagerPlugin\Composer\ArtifactsPlugin->preCommandRun (reported by composer-normalize)
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)

Artifacts

Produced during runtime
Name Size
phpcq-builds-php-7.4 Expired
9.92 KB
phpcq-builds-php-8.1 Expired
12.7 KB
phpcq-builds-php-8.2 Expired
12.7 KB