Skip to content

Commit d3965aa

Browse files
fix: Model's --write duplicates array properties (#1594)
* Use the bug-fixed version of the upstream library * Updated the test for fixed features to correctly expect
1 parent 4f588b9 commit d3965aa

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require": {
2323
"php": "^8.1",
2424
"ext-json": "*",
25-
"barryvdh/reflection-docblock": "^2.1.1",
25+
"barryvdh/reflection-docblock": "^2.1.2",
2626
"composer/class-map-generator": "^1.0",
2727
"illuminate/console": "^10 || ^11",
2828
"illuminate/database": "^10.38 || ^11",

tests/Console/ModelsCommand/ArrayCastsWithComment/Test.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
class Test extends AbstractModelsCommand
1111
{
12-
/**
13-
* The generated snapshot is wrong until
14-
* https://github.com/barryvdh/laravel-ide-helper/issues/1505 is fixed
15-
*/
1612
public function test(): void
1713
{
1814
$command = $this->app->make(ModelsCommand::class);

tests/Console/ModelsCommand/ArrayCastsWithComment/__snapshots__/Test__test__1.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
* @property string $cast_to_bool
2929
* @property string $cast_to_boolean
3030
* @property string $cast_to_object
31-
* @property array $cast_to_array
32-
* @property array $cast_to_json
33-
* @property \Illuminate\Support\Collection $cast_to_collection
3431
* @property string $cast_to_date
3532
* @property string $cast_to_datetime
3633
* @property string $cast_to_date_serialization

0 commit comments

Comments
 (0)