Skip to content

Commit 4f9c8e6

Browse files
committed
Fix failing tests
1 parent 0b6cf8e commit 4f9c8e6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/broadcast.php.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector
1818

1919
class Broadcast
2020
{
21-
public function __construct(private readonly \Illuminate\Contracts\Broadcasting\Factory $broadcastingFactory)
21+
public function __construct(private readonly \Illuminate\Contracts\Broadcasting\Factory $factory)
2222
{
2323
}
2424
public function action()
2525
{
26-
return $this->broadcastingFactory->event('template.blade');
26+
return $this->factory->event('template.blade');
2727
}
2828
}
2929

Diff for: tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/config.php.inc

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector
2323

2424
class Config
2525
{
26-
public function __construct(private readonly \Illuminate\Contracts\Config\Repository $configRepository)
26+
public function __construct(private readonly \Illuminate\Contracts\Config\Repository $repository)
2727
{
2828
}
2929
public function actionGet()
3030
{
31-
$value = $this->configRepository->get('value');
31+
$value = $this->repository->get('value');
3232
}
3333

3434
public function actionSet($value)
3535
{
36-
$this->configRepository->set(['value' => $value]);
36+
$this->repository->set(['value' => $value]);
3737
}
3838
}
3939

Diff for: tests/Rector/FuncCall/ArgumentFuncCallToMethodCallRector/Fixture/view.php.inc

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector
1919

2020
class View
2121
{
22-
public function __construct(private readonly \Illuminate\Contracts\View\Factory $viewFactory)
22+
public function __construct(private readonly \Illuminate\Contracts\View\Factory $factory)
2323
{
2424
}
2525
public function action()
2626
{
27-
$template = $this->viewFactory->make('template.blade');
28-
$viewFactory = $this->viewFactory;
27+
$template = $this->factory->make('template.blade');
28+
$viewFactory = $this->factory;
2929
}
3030
}
3131

0 commit comments

Comments
 (0)