Skip to content

Commit 3aabbb7

Browse files
authored
fixes restrictive type declaration in InteractsWithViews (#36575)
1 parent 6d7661d commit 3aabbb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait InteractsWithViews
1818
* @param \Illuminate\Contracts\Support\Arrayable|array $data
1919
* @return \Illuminate\Testing\TestView
2020
*/
21-
protected function view(string $view, array $data = [])
21+
protected function view(string $view, $data = [])
2222
{
2323
return new TestView(view($view, $data));
2424
}
@@ -30,7 +30,7 @@ protected function view(string $view, array $data = [])
3030
* @param \Illuminate\Contracts\Support\Arrayable|array $data
3131
* @return \Illuminate\Testing\TestView
3232
*/
33-
protected function blade(string $template, array $data = [])
33+
protected function blade(string $template, $data = [])
3434
{
3535
$tempDirectory = sys_get_temp_dir();
3636

@@ -52,7 +52,7 @@ protected function blade(string $template, array $data = [])
5252
* @param \Illuminate\Contracts\Support\Arrayable|array $data
5353
* @return \Illuminate\Testing\TestView
5454
*/
55-
protected function component(string $componentClass, array $data = [])
55+
protected function component(string $componentClass, $data = [])
5656
{
5757
$component = $this->app->make($componentClass, $data);
5858

0 commit comments

Comments
 (0)