Skip to content

Commit 95da486

Browse files
committed
Renamed ProvidesInertiaProp to ProvidesInertiaProperty
1 parent d10894d commit 95da486

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ProvidesInertiaProp.php renamed to src/ProvidesInertiaProperty.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 ProvidesInertiaProp
5+
interface ProvidesInertiaProperty
66
{
77
public function toInertiaProp(PropContext $prop): mixed;
88
}

src/Response.php

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

273273
$currentKey = $parentKey ? $parentKey.'.'.$key : $key;
274274

275-
if ($value instanceof ProvidesInertiaProp) {
275+
if ($value instanceof ProvidesInertiaProperty) {
276276
$value = $value->toInertiaProp(new PropContext($currentKey, $props, $request));
277277
}
278278

tests/Stubs/MergeWithSharedProp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use Inertia\Inertia;
66
use Inertia\PropContext;
7-
use Inertia\ProvidesInertiaProp;
7+
use Inertia\ProvidesInertiaProperty;
88

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

0 commit comments

Comments
 (0)