Last active
July 6, 2017 02:28
-
-
Save fernandodebrando/3c6c77b6c1360bb6488a28093e7dd6fc to your computer and use it in GitHub Desktop.
get_class() desabilita o parâmetro nulo
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 | |
class Foo | |
{ | |
function bar($repository) | |
{ | |
$result = $repository->find(100); | |
echo get_class($result); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment