mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
Fix CS
This commit is contained in:
@@ -1108,7 +1108,7 @@ class ModelsCommand extends Command
|
||||
if ($reflectionType === null) {
|
||||
$reflectionType = $this->getReturnTypeFromDocBlock($methodReflection);
|
||||
}
|
||||
|
||||
|
||||
if($reflectionType === 'static' || $reflectionType === '$this') {
|
||||
$reflectionType = $type;
|
||||
}
|
||||
|
||||
-3
@@ -4,9 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts\Casts;
|
||||
|
||||
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
|
||||
|
||||
class ExtendedSelfCastingCasterWithStaticDocblockReturn extends SelfCastingCasterWithStaticDocblockReturn
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
-3
@@ -4,9 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\LaravelCustomCasts\Casts;
|
||||
|
||||
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
|
||||
|
||||
class ExtendedSelfCastingCasterWithThisDocblockReturn extends SelfCastingCasterWithStaticDocblockReturn
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@ class CustomCast extends Model
|
||||
'casted_property_with_this_return_docblock' => SelfCastingCasterWithThisDocblockReturn::class,
|
||||
'extended_casted_property_with_static_return_docblock' => ExtendedSelfCastingCasterWithStaticDocblockReturn::class,
|
||||
'extended_casted_property_with_this_return_docblock' => ExtendedSelfCastingCasterWithThisDocblockReturn::class,
|
||||
'casted_property_with_static_return_docblock_and_param' => SelfCastingCasterWithStaticDocblockReturn::class .':param',
|
||||
'casted_property_with_static_return_docblock_and_param' => SelfCastingCasterWithStaticDocblockReturn::class . ':param',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user