Skip to content

Commit eafbf74

Browse files
committed
Fix typo
1 parent fcf7ba3 commit eafbf74

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/InertiaResponsible.php renamed to src/InertiaResponsable.php

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

33
namespace Inertia;
44

5-
interface InertiaResponsible
5+
interface InertiaResponsable
66
{
77
public function toInertiaResponse(Prop $prop): mixed;
88
}

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function resolvePropertyInstances(array $props, Request $request, ?string
263263

264264
$currentKey = $parentKey ? $parentKey.'.'.$key : $key;
265265

266-
if ($value instanceof InertiaResponsible) {
266+
if ($value instanceof InertiaResponsable) {
267267
$value = $value->toInertiaResponse(new Prop($currentKey, $props, $request));
268268
}
269269

tests/Stubs/MergeWithSharedProp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace Inertia\Tests\Stubs;
44

55
use Inertia\Inertia;
6-
use Inertia\InertiaResponsible;
6+
use Inertia\InertiaResponsable;
77
use Inertia\Prop;
88

9-
class MergeWithSharedProp implements InertiaResponsible
9+
class MergeWithSharedProp implements InertiaResponsable
1010
{
1111
public function __construct(protected array $items = []) {}
1212

0 commit comments

Comments
 (0)