Skip to content

Commit 563c261

Browse files
committed
Fix typo in LazyInterface naming throughout codebase
Corrected the spelling of "LazyInteterface" to "LazyInterface" in all relevant files to ensure consistent naming and prevent potential interface reference errors. This change impacts class implementations and annotations that depended on the misspelled interface name.
1 parent 96e3e29 commit 563c261

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/di/MultiBinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Ray\Di;
66

77
use Ray\Di\MultiBinding\LazyInstance;
8-
use Ray\Di\MultiBinding\LazyInteterface;
8+
use Ray\Di\MultiBinding\LazyInterface;
99
use Ray\Di\MultiBinding\LazyProvider;
1010
use Ray\Di\MultiBinding\LazyTo;
1111
use Ray\Di\MultiBinding\MultiBindings;
@@ -80,7 +80,7 @@ public function toInstance($instance): void
8080
$this->bind(new LazyInstance($instance), $this->key);
8181
}
8282

83-
private function bind(LazyInteterface $lazy, ?string $key): void
83+
private function bind(LazyInterface $lazy, ?string $key): void
8484
{
8585
$bindings = [];
8686
if ($this->multiBindings->offsetExists($this->interface)) {

src/di/MultiBinding/LazyInstance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @template T of mixed
1111
* @psalm-immutable
1212
*/
13-
final class LazyInstance implements LazyInteterface
13+
final class LazyInstance implements LazyInterface
1414
{
1515
/** @var T */
1616
private $instance;

src/di/MultiBinding/LazyInteterface.php renamed to src/di/MultiBinding/LazyInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Ray\Di\InjectorInterface;
88

9-
interface LazyInteterface
9+
interface LazyInterface
1010
{
1111
/**
1212
* @return mixed

src/di/MultiBinding/LazyProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @template T of ProviderInterface
1212
*/
13-
final class LazyProvider implements LazyInteterface
13+
final class LazyProvider implements LazyInterface
1414
{
1515
/** @var class-string<T> */
1616
private $class;

src/di/MultiBinding/LazyTo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @template T of object
1111
*/
12-
final class LazyTo implements LazyInteterface
12+
final class LazyTo implements LazyInterface
1313
{
1414
/** @var class-string<T> */
1515
private $class;

src/di/MultiBinding/Map.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
*/
2424
final class Map implements IteratorAggregate, ArrayAccess, Countable
2525
{
26-
/** @var array<array-key, LazyInteterface> $lazies */
26+
/** @var array<array-key, LazyInterface> $lazies */
2727
private $lazies;
2828

2929
/** @var InjectorInterface */
3030
private $injector;
3131

3232
/**
33-
* @param array<array-key, LazyInteterface> $lazies
33+
* @param array<array-key, LazyInterface> $lazies
3434
*/
3535
public function __construct(array $lazies, InjectorInterface $injector)
3636
{

src/di/MultiBinding/MultiBindings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use function array_merge_recursive;
1010

1111
/**
12-
* @extends ArrayObject<string, non-empty-array<array-key, LazyInteterface>>
12+
* @extends ArrayObject<string, non-empty-array<array-key, LazyInterface>>
1313
*/
1414
final class MultiBindings extends ArrayObject
1515
{

0 commit comments

Comments
 (0)