mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-19 10:33:11 +00:00
* Fix #1173 Use FQN for write-mixin * Fix #1173 Use FQN for write-mixin: Update Test cases
This commit is contained in:
@@ -1225,7 +1225,7 @@ class ModelsCommand extends Command
|
|||||||
;
|
;
|
||||||
|
|
||||||
$className = trim($className, '\\');
|
$className = trim($className, '\\');
|
||||||
$writingToExternalFile = !$this->write;
|
$writingToExternalFile = !$this->write || $this->write_mixin;
|
||||||
$classIsNotInExternalFile = $reflection->getName() !== $className;
|
$classIsNotInExternalFile = $reflection->getName() !== $className;
|
||||||
$forceFQCN = $this->laravel['config']->get('ide-helper.force_fqn', false);
|
$forceFQCN = $this->laravel['config']->get('ide-helper.force_fqn', false);
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models;
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property $someProp
|
* @property $someProp
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models;
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GeneratePhpdocWithMixin\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property $someProp
|
* @property $someProp
|
||||||
|
|||||||
Reference in New Issue
Block a user