From 37e590e16358891e71051868ecb19f695dbfe24d Mon Sep 17 00:00:00 2001 From: Hossein Baghayi Date: Wed, 17 Mar 2021 08:21:09 +0330 Subject: [PATCH] Optional Parameter This was supposed to be optional parameter Sara! And where are the test cases? --- println.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/println.php b/println.php index c4fe553..f115c21 100644 --- a/println.php +++ b/println.php @@ -2,7 +2,7 @@ namespace phplang; -function println(string $msg): int { +function println(string $msg = ''): int { echo $msg, "\n"; return strlen($msg) + 1; }