Skip to content

Commit

Permalink
fix namespace of dummy classes
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jun 15, 2024
1 parent 2efeec5 commit d630218
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Fields/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/phpstan/FieldWithRoute.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests;
namespace Tests\phpstan;

use Cone\Root\Fields\Field;
use Cone\Root\Traits\RegistersRoutes;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpstan/MetaDataModel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tests;
namespace Tests\phpstan;

use Cone\Root\Traits\HasMetaData;
use Illuminate\Database\Eloquent\Model;
Expand Down

0 comments on commit d630218

Please sign in to comment.