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 @@