Skip to content

Commit d1a58cc

Browse files
committed
update facade docblock
1 parent af75718 commit d1a58cc

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

src/Inertia.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33
namespace Inertia;
44

55
use Illuminate\Support\Facades\Facade;
6-
use Illuminate\Contracts\Support\Arrayable;
76

87
/**
98
* @method static void setRootView(string $name)
10-
* @method static void share($key, $value = null)
11-
* @method static array getShared(string $key = null, $default = null)
12-
* @method static array flushShared()
13-
* @method static void version($version)
14-
* @method static int|string getVersion()
15-
* @method static LazyProp lazy(callable $callback)
16-
* @method static Response render($component, array|Arrayable $props = [])
17-
* @method static \Symfony\Component\HttpFoundation\Response location(string $url)
9+
* @method static void share(string|array|\Illuminate\Contracts\Support\Arrayable $key, mixed $value = null)
10+
* @method static mixed getShared(string|null $key = null, mixed $default = null)
11+
* @method static void flushShared()
12+
* @method static void version(\Closure|string|null $version)
13+
* @method static string getVersion()
14+
* @method static \Inertia\LazyProp lazy(callable $callback)
15+
* @method static \Inertia\Response render(string $component, array|\Illuminate\Contracts\Support\Arrayable $props = [])
16+
* @method static \Symfony\Component\HttpFoundation\Response location(string|\Illuminate\Http\RedirectResponse $url)
17+
* @method static void macro(string $name, object|callable $macro)
18+
* @method static void mixin(object $mixin, bool $replace = true)
19+
* @method static bool hasMacro(string $name)
20+
* @method static void flushMacros()
1821
*
1922
* @see \Inertia\ResponseFactory
2023
*/

src/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(string $component, $props, string $rootView = 'app',
3838

3939
/**
4040
* @param string|array $key
41-
* @param mixed|null $value
41+
* @param mixed $value
4242
*
4343
* @return $this
4444
*/
@@ -55,7 +55,7 @@ public function with($key, $value = null): self
5555

5656
/**
5757
* @param string|array $key
58-
* @param mixed|null $value
58+
* @param mixed $value
5959
*
6060
* @return $this
6161
*/

src/ResponseFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function setRootView(string $name): void
3131

3232
/**
3333
* @param string|array|Arrayable $key
34-
* @param mixed|null $value
34+
* @param mixed $value
3535
*/
3636
public function share($key, $value = null): void
3737
{
@@ -45,7 +45,7 @@ public function share($key, $value = null): void
4545
}
4646

4747
/**
48-
* @param mixed|null $default
48+
* @param mixed $default
4949
*
5050
* @return mixed
5151
*/

src/Testing/Concerns/Has.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function hasAll($key): self
3636
}
3737

3838
/**
39-
* @param mixed|null $value
39+
* @param mixed $value
4040
*
4141
* @return $this
4242
*/

tests/Stubs/ExampleMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class ExampleMiddleware extends Middleware
1111
{
1212
/**
13-
* @var mixed|null
13+
* @var mixed
1414
*/
1515
protected $version;
1616

0 commit comments

Comments
 (0)