1
0
Fork 0

Fix GithubActionError on php 8.1 (#10250)

pull/10257/head
Markus Staab 2021-11-02 14:39:04 +01:00 committed by GitHub
parent cb0293cf30
commit d7154c2a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -37,11 +37,12 @@ final class GithubActionError
{ {
if (getenv('GITHUB_ACTIONS') && !getenv('COMPOSER_TESTS_ARE_RUNNING')) { if (getenv('GITHUB_ACTIONS') && !getenv('COMPOSER_TESTS_ARE_RUNNING')) {
$message = $this->escapeData($message); $message = $this->escapeData($message);
$file = $this->escapeProperty($file);
if ($file && $line) { if ($file && $line) {
$file = $this->escapeProperty($file);
$this->io->write("::error file=". $file .",line=". $line ."::". $message); $this->io->write("::error file=". $file .",line=". $line ."::". $message);
} elseif ($file) { } elseif ($file) {
$file = $this->escapeProperty($file);
$this->io->write("::error file=". $file ."::". $message); $this->io->write("::error file=". $file ."::". $message);
} else { } else {
$this->io->write("::error ::". $message); $this->io->write("::error ::". $message);