Created
October 20, 2016 22:31
-
-
Save peterlafferty/ca021854fa830c89c83bfc9b28c6daa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function test(int $number, string $text) : string | |
{ | |
$number = test2($number); | |
return str_repeat($text, $number); | |
} | |
function test2(int $number) : int | |
{ | |
return $number * 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment