From 7b18a87ecbdb396848526b370353cc13a378bd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sat, 15 Jun 2024 07:27:00 +0000 Subject: [PATCH] fix --- 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 ec309604..f89aa892 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\phpstan\FieldWithRoute $field */ + /** @var \Cone\Root\Tests\phpstan\FieldWithRoute $field */ $field->registerRoutes($request, $router); } }); diff --git a/src/Fields/Meta.php b/src/Fields/Meta.php index f4ffebfc..e122b532 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\phpstan\MetaDataModel $model */ + /** @phpstan-var \Cone\Root\Tests\phpstan\MetaDataModel $model */ $related = $model->metaData()->make(); return $model->metaData() diff --git a/tests/phpstan/FieldWithRoute.php b/tests/phpstan/FieldWithRoute.php index 091cd945..e9ac9f12 100644 --- a/tests/phpstan/FieldWithRoute.php +++ b/tests/phpstan/FieldWithRoute.php @@ -1,6 +1,6 @@