Skip to content

Commit

Permalink
Remove the context::resetStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
huggsboson committed Nov 14, 2023
1 parent d9c448d commit 651cb29
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Context/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
final class Context implements ContextInterface
{
/** @var ContextStorageInterface&ExecutionContextAwareInterface */
private static ?ContextStorageInterface $storage;
private static ContextStorageInterface $storage;

// Optimization for spans to avoid copying the context array.
private static ContextKeyInterface $spanContextKey;
Expand Down Expand Up @@ -41,15 +41,6 @@ public static function setStorage(ContextStorageInterface $storage): void
self::$storage = $storage;
}

/**
* Function for resetting storage for test cases, should not be used normally.
* @return void
*/
public static function resetStorage(): void
{
self::$storage = null;
}

/**
* @return ContextStorageInterface&ExecutionContextAwareInterface
*/
Expand Down

0 comments on commit 651cb29

Please sign in to comment.