Skip to content

Commit ae98ae6

Browse files
authored
Merge pull request #3574 from samsonasik/remove_get_class_on_method_exists
remove get_class() on method_exists
2 parents fc113f2 + 0d04636 commit ae98ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Config/BaseService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected static function discoverServices(string $name, array $arguments)
286286
// Try to find the desired service method
287287
foreach (static::$services as $class)
288288
{
289-
if (method_exists(get_class($class), $name))
289+
if (method_exists($class, $name))
290290
{
291291
return $class::$name(...$arguments);
292292
}

0 commit comments

Comments
 (0)