diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 7b212941e..56bd7ab86 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -389,7 +389,7 @@ public function castPropertiesType($model) break; case 'array': case 'json': - $realType = 'array'; + $realType = 'array'; break; case 'object': $realType = 'object'; @@ -413,10 +413,10 @@ public function castPropertiesType($model) $realType = '\Carbon\CarbonImmutable'; break; case 'collection': - $realType = '\Illuminate\Support\Collection'; + $realType = '\Illuminate\Support\Collection'; break; case AsArrayObject::class: - $realType = '\ArrayObject'; + $realType = '\ArrayObject'; break; default: // In case of an optional custom cast parameter , only evaluate diff --git a/tests/Console/ModelsCommand/AdvancedCasts/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/AdvancedCasts/__snapshots__/Test__test__1.php index 2281cda88..dcd68546a 100644 --- a/tests/Console/ModelsCommand/AdvancedCasts/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/AdvancedCasts/__snapshots__/Test__test__1.php @@ -22,13 +22,13 @@ * @property \Carbon\CarbonImmutable $cast_to_immutable_datetime * @property int $cast_to_timestamp * @property mixed $cast_to_encrypted - * @property array $cast_to_encrypted_array - * @property \Illuminate\Support\Collection $cast_to_encrypted_collection - * @property array $cast_to_encrypted_json + * @property array $cast_to_encrypted_array + * @property \Illuminate\Support\Collection $cast_to_encrypted_collection + * @property array $cast_to_encrypted_json * @property object $cast_to_encrypted_object * @property \Illuminate\Support\Collection $cast_to_as_collection * @property \Illuminate\Support\Collection $cast_to_as_enum_collection - * @property \ArrayObject $cast_to_as_array_object + * @property \ArrayObject $cast_to_as_array_object * @property AdvancedCastCollection $cast_to_as_collection_using * @property \Illuminate\Support\Collection $cast_to_as_enum_collection_of * @method static \Illuminate\Database\Eloquent\Builder|AdvancedCast newModelQuery() diff --git a/tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php index 7db3339b2..3041ecf07 100644 --- a/tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php +++ b/tests/Console/ModelsCommand/SimpleCasts/__snapshots__/Test__test__1.php @@ -19,9 +19,9 @@ * @property bool $cast_to_bool * @property bool $cast_to_boolean * @property object $cast_to_object - * @property array $cast_to_array - * @property array $cast_to_json - * @property \Illuminate\Support\Collection $cast_to_collection + * @property array $cast_to_array + * @property array $cast_to_json + * @property \Illuminate\Support\Collection $cast_to_collection * @property \Illuminate\Support\Carbon $cast_to_date * @property \Illuminate\Support\Carbon $cast_to_datetime * @property \Illuminate\Support\Carbon $cast_to_date_serialization @@ -34,9 +34,9 @@ * @property \Carbon\CarbonImmutable $cast_to_immutable_datetime_serialization * @property int $cast_to_timestamp * @property mixed $cast_to_encrypted - * @property array $cast_to_encrypted_array - * @property \Illuminate\Support\Collection $cast_to_encrypted_collection - * @property array $cast_to_encrypted_json + * @property array $cast_to_encrypted_array + * @property \Illuminate\Support\Collection $cast_to_encrypted_collection + * @property array $cast_to_encrypted_json * @property object $cast_to_encrypted_object * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|SimpleCast newQuery()