|
@@ -186,7 +186,7 @@ |
|
|
block discarded – undo |
|
186
|
186
|
public function addCallback(callable $callable, ?array $args = null): BaseRepositoryInterface |
|
187
|
187
|
{ |
|
188
|
188
|
$args = $args ?? []; |
|
189
|
|
- $hash = sha1(serialize(array_merge([spl_object_hash((object) $callable)], $args))); |
|
|
189
|
+ $hash = sha1(serialize(array_merge([spl_object_hash((object)$callable)], $args))); |
|
190
|
190
|
|
|
191
|
191
|
if (!in_array($hash, self::$processedCallbacks, true)) { |
|
192
|
192
|
self::$callbacks[$hash] = [$callable, $args]; |
Please login to merge, or discard this patch.