|
@@ -9,7 +9,7 @@ |
|
|
block discarded – undo |
|
9
|
9
|
public function register_hook($hook, $type, $callback) { |
|
10
|
10
|
$reflectedConcern = new \ReflectionClass($callback); |
|
11
|
11
|
|
|
12
|
|
- if($reflectedConcern->implementsInterface(Fluent::class)) { |
|
|
12
|
+ if ($reflectedConcern->implementsInterface(Fluent::class)) { |
|
13
|
13
|
$fluentReflection = new ReflectionClass(Fluent::class); |
|
14
|
14
|
("add_$type")($hook, array($callback, reset($fluentReflection->getMethods())->name)); |
|
15
|
15
|
} |
Please login to merge, or discard this patch.