Skip to content

Commit

Permalink
Use name property to prevent issue with APC-enabled PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Apr 27, 2018
1 parent 12ac0e1 commit 73bcb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utility/Reflection/ClassUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function getHooks($classpath, $namespace, $classname = null, $exte
* @throws ReflectionException Throws a Reflection exception if an error occurs.
*/
public static function getName($object) {
return (new ReflectionClass($object))->getName();
return (new ReflectionClass($object))->name;
}

/**
Expand Down

0 comments on commit 73bcb18

Please sign in to comment.