From d63021837e5423eab054e570afafe77c58202f98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 15 Jun 2024 07:24:32 +0000 Subject: [PATCH] fix namespace of dummy classes --- src/Fields/Fields.php | 2 +- src/Fields/Meta.php | 2 +- tests/phpstan/FieldWithRoute.php | 2 +- tests/phpstan/MetaDataModel.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Fields/Fields.php b/src/Fields/Fields.php index 08e0eb1b..ec309604 100644 --- a/src/Fields/Fields.php +++ b/src/Fields/Fields.php @@ -123,7 +123,7 @@ public function registerRoutes(Request $request, Router $router): void $router->prefix('fields')->group(function (Router $router) use ($request): void { $this->each(static function (Field $field) use ($request, $router): void { if (in_array(RegistersRoutes::class, class_uses_recursive($field))) { - /** @var \Tests\FieldWithRoute $field */ + /** @var \Tests\phpstan\FieldWithRoute $field */ $field->registerRoutes($request, $router); } }); diff --git a/src/Fields/Meta.php b/src/Fields/Meta.php index 1d73e1f3..f4ffebfc 100644 --- a/src/Fields/Meta.php +++ b/src/Fields/Meta.php @@ -24,7 +24,7 @@ class Meta extends MorphOne public function __construct(string $label, Closure|string|null $modelAttribute = null, Closure|string|null $relation = null) { $relation ??= function (Model $model): EloquentRelation { - /** @phpstan-var \Tests\MetaDataModel $model */ + /** @phpstan-var \Tests\phpstan\MetaDataModel $model */ $related = $model->metaData()->make(); return $model->metaData() diff --git a/tests/phpstan/FieldWithRoute.php b/tests/phpstan/FieldWithRoute.php index 07ce0955..091cd945 100644 --- a/tests/phpstan/FieldWithRoute.php +++ b/tests/phpstan/FieldWithRoute.php @@ -1,6 +1,6 @@