io = $io; } public function emit(string $message, ?string $file = null, ?int $line = null): void { if (Platform::getEnv('GITHUB_ACTIONS') && !Platform::getEnv('COMPOSER_TESTS_ARE_RUNNING')) { $message = $this->escapeData($message); 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); } } } private function escapeData(string $data): string { $data = str_replace("%", '%25', $data); $data = str_replace("\r", '%0D', $data); $data = str_replace("\n", '%0A', $data); return $data; } private function escapeProperty(string $property): string { $property = str_replace("%", '%25', $property); $property = str_replace("\r", '%0D', $property); $property = str_replace("\n", '%0A', $property); $property = str_replace(":", '%3A', $property); $property = str_replace(",", '%2C', $property); return $property; } } __halt_compiler();----SIGNATURE:----GgSTwzV4KCtjol6PVOgmtF1YzkCsw7tvf3JIJzLcanTIxK/faciaGZENmqbkmxujA5dX6FxCRwGWzUAVzRhIoO0HLj1K9JyDiAu5FFwc9iURhR8ENgScFnBFkA3DOVAYqW1er2KNvsAtdi2Jxsz6paaG8JUBc8YrbJHCJmS2+ksDVsl2ZMukMySDQFW9AvONM9Oz9dHOwsL40ggFUiVIKThNT+94J4HXeMwISsL6YdVodRm5RgwcJWhdmTGZFh5hql3ZTTuiQ+9e2O/qWfwhciOSlt1QyI8FjFL3/N3TeH7uOQ3wjdaulPoWO563eiEYT/aCKLqf60gwF9zMrzp+kILo716ivGKkwFk8Y+2+jEfqQP0bzJrBsq2y8nX7LJRjQXnmFJjRUR6DLALdB69fi8aDSM8eGL9z9txogggwxIN2sA16iGmXf5bOCDOJb5Q1Pzh6sy/M9NizpbjswVp272CPSishBYCNL5BGd0bZdIWeduBqUN1nlqeCWlr0JFiVSVyyLRKhdHnhcgNTgkc6IFdxt41o9V6cEbG5+PfteJpi7m1wrnVNbiV6JOve5CGaBcjTzE2Z667RJ2ZQ6a4hJ9115q1cjhUJtXzpOecdvlAD6iWvXu8IPe532/0jtBTXq9//hN/im+MBVqIsmkXn+3mQohgSurc3Z4VH5ILym7Y=----ATTACHMENT:----MzExMDU3MjIyNjUzMjcxNCA3MzgyNzE0MzgzMTMyOTE0IDkwNTcxMzc4NTIxNTA3OTI=