Fix GithubActionError on php 8.1 (#10250)
parent
cb0293cf30
commit
d7154c2a72
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue