Skip to content

Commit

Permalink
Updates tests (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfox authored Jan 7, 2025
1 parent b680c0f commit 478d0ed
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector

class Auth
{
public function __construct(private \Illuminate\Contracts\Auth\Guard $guard)
public function __construct(private readonly \Illuminate\Contracts\Auth\Guard $guard)
{
}
public function action()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector

class Back
{
public function __construct(private \Illuminate\Routing\Redirector $redirector)
public function __construct(private readonly \Illuminate\Routing\Redirector $redirector)
{
}
public function action()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector

class Broadcast
{
public function __construct(private \Illuminate\Contracts\Broadcasting\Factory $broadcastingFactory)
public function __construct(private readonly \Illuminate\Contracts\Broadcasting\Factory $broadcastingFactory)
{
}
public function action()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector

class Config
{
public function __construct(private \Illuminate\Contracts\Config\Repository $configRepository)
public function __construct(private readonly \Illuminate\Contracts\Config\Repository $configRepository)
{
}
public function actionGet()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector

class Route
{
public function __construct(private \Illuminate\Routing\UrlGenerator $urlGenerator)
public function __construct(private readonly \Illuminate\Routing\UrlGenerator $urlGenerator)
{
}
public function action()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\FactoryFuncCallToStaticCallRector\

class Session
{
public function __construct(private \Illuminate\Session\SessionManager $sessionManager)
public function __construct(private readonly \Illuminate\Session\SessionManager $sessionManager)
{
}
public function action()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace RectorLaravel\Tests\Rector\FuncCall\ArgumentFuncCallToMethodCallRector

class View
{
public function __construct(private \Illuminate\Contracts\View\Factory $viewFactory)
public function __construct(private readonly \Illuminate\Contracts\View\Factory $viewFactory)
{
}
public function action()
Expand Down

0 comments on commit 478d0ed

Please sign in to comment.