Created
July 31, 2022 09:18
-
-
Save sergioccrr/986e0b58f1077c5a88e397fd302ea4d1 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 get_user_classes() { | |
$dc = get_declared_classes(); | |
return array_filter($dc, function($className) { | |
return (!(new ReflectionClass($className))->isInternal()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment