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')) {
|
||||
$message = $this->escapeData($message);
|
||||
$file = $this->escapeProperty($file);
|
||||
|
||||
if ($file && $line) {
|
||||
$file = $this->escapeProperty($file);
|
||||
$this->io->write("::error file=". $file .",line=". $line ."::". $message);
|
||||
} elseif ($file) {
|
||||
$file = $this->escapeProperty($file);
|
||||
$this->io->write("::error file=". $file ."::". $message);
|
||||
} else {
|
||||
$this->io->write("::error ::". $message);
|
||||
|
|
Loading…
Reference in New Issue