Skip to content

Commit fd2aea2

Browse files
committed
Remove deprecated LazyProp and Inertia\Testing\Concerns\* classes
1 parent 98c5ec3 commit fd2aea2

15 files changed

+38
-454
lines changed

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ parameters:
66
paths:
77
- src
88
- tests
9-
excludePaths:
10-
- src/Testing/Concerns
119
ignoreErrors:
1210
- '#Call to an undefined method.*TestResponse.*::assertInertia\(\)#'
1311
- '#Call to an undefined method.*TestResponse.*::inertiaPage\(\)#'

src/Inertia.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* @method static void resolveUrlUsing(\Closure|null $urlResolver = null)
1717
* @method static \Inertia\ScrollProp<mixed> scroll(mixed $value, string $wrapper = 'data', \Inertia\ProvidesScrollMetadata|callable|null $metadata = null)
1818
* @method static \Inertia\OptionalProp optional(callable $callback)
19-
* @method static \Inertia\LazyProp lazy(callable $callback)
2019
* @method static \Inertia\DeferProp defer(callable $callback, string $group = 'default')
2120
* @method static \Inertia\AlwaysProp always(mixed $value)
2221
* @method static \Inertia\MergeProp merge(mixed $value)

src/LazyProp.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/Response.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ public function resolvePropertyInstances(array $props, Request $request, ?string
379379

380380
$resolveViaApp = collect([
381381
Closure::class,
382-
LazyProp::class,
383382
OptionalProp::class,
384383
DeferProp::class,
385384
AlwaysProp::class,
@@ -565,7 +564,7 @@ protected function resolveMergeMatchingKeys(Collection $mergeProps): array
565564
}
566565

567566
/**
568-
* Resolve deferred props configuration for client-side lazy loading.
567+
* Resolve deferred props configuration for client-side loading.
569568
*
570569
* @return array<string, mixed>
571570
*/

src/ResponseFactory.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,6 @@ public function encryptHistory($encrypt = true): void
167167
$this->encryptHistory = $encrypt;
168168
}
169169

170-
/**
171-
* Create a lazy property.
172-
*
173-
* @deprecated Use `optional` instead.
174-
*/
175-
public function lazy(callable $callback): LazyProp
176-
{
177-
return new LazyProp($callback);
178-
}
179-
180170
/**
181171
* Create an optional property.
182172
*/

src/Testing/Concerns/Debugging.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/Testing/Concerns/Has.php

Lines changed: 0 additions & 121 deletions
This file was deleted.

src/Testing/Concerns/Interaction.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/Testing/Concerns/Matching.php

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)