@@ -57,7 +57,7 @@ public static function isGithubActionEnvironment(): bool
5757 *
5858 * @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
5959 */
60- public function error (string $ message , string $ file = null , int $ line = null , int $ col = null ): void
60+ public function error (string $ message , ? string $ file = null , ? int $ line = null , ? int $ col = null ): void
6161 {
6262 $ this ->log ('error ' , $ message , $ file , $ line , $ col );
6363 }
@@ -67,7 +67,7 @@ public function error(string $message, string $file = null, int $line = null, in
6767 *
6868 * @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message
6969 */
70- public function warning (string $ message , string $ file = null , int $ line = null , int $ col = null ): void
70+ public function warning (string $ message , ? string $ file = null , ? int $ line = null , ? int $ col = null ): void
7171 {
7272 $ this ->log ('warning ' , $ message , $ file , $ line , $ col );
7373 }
@@ -77,12 +77,12 @@ public function warning(string $message, string $file = null, int $line = null,
7777 *
7878 * @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-a-debug-message
7979 */
80- public function debug (string $ message , string $ file = null , int $ line = null , int $ col = null ): void
80+ public function debug (string $ message , ? string $ file = null , ? int $ line = null , ? int $ col = null ): void
8181 {
8282 $ this ->log ('debug ' , $ message , $ file , $ line , $ col );
8383 }
8484
85- private function log (string $ type , string $ message , string $ file = null , int $ line = null , int $ col = null ): void
85+ private function log (string $ type , string $ message , ? string $ file = null , ? int $ line = null , ? int $ col = null ): void
8686 {
8787 // Some values must be encoded.
8888 $ message = strtr ($ message , self ::ESCAPED_DATA );
0 commit comments