Skip to content

Commit 8d630b4

Browse files
authored
Replaced get_called_class with static::class. (#7276)
1 parent 9b260a9 commit 8d630b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Traits/StaticInstance.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ trait StaticInstance
1818
{
1919
public static function instance(array $params = [], bool $refresh = false, string $suffix = ''): static
2020
{
21-
$key = get_called_class() . $suffix;
21+
$key = static::class . $suffix;
2222
$instance = null;
23+
2324
if (Context::has($key)) {
2425
$instance = Context::get($key);
2526
}

0 commit comments

Comments
 (0)