Created
April 25, 2015 15:09
-
-
Save jazzdan/abb1ff9f20f0f87465e4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
declare(strict_types=1); | |
function myLog(string $message): string { | |
return $message; | |
} | |
function add(int $a, int $b): int { | |
myLog($a + $b); | |
return $a + $b; | |
} | |
$result = add(1, 3); | |
echo $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment