From 29a8ad09b215c8f6b41a5489a77657149c98e87c Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 15:36:13 +0200 Subject: [PATCH 01/16] Support "through" type relationships. - BelongsToManyThrough - HasManyThrough - BelongsToThrough --- src/Actions/WriteRelationship.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index 93f5b78..f1d74ca 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -23,8 +23,8 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput $relatedModel = $this->getClassName($relation['related']); $relation = match ($relation['type']) { - 'BelongsToMany', 'HasMany', 'MorphToMany', 'MorphMany' => Str::plural($relatedModel), - 'BelongsTo', 'HasOne', 'MorphOne' => Str::singular($relatedModel), + 'BelongsToMany', 'BelongToManyThrough', 'HasMany', 'HasManyThrough', 'MorphToMany', 'MorphMany' => Str::plural($relatedModel), + 'BelongsTo', 'BelongsToThrough', 'HasOne', 'MorphOne' => Str::singular($relatedModel), default => $relatedModel, }; From 131c86e82b76faa2e4ad72f29ad51fd0fe3f7410 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 15:47:43 +0200 Subject: [PATCH 02/16] Add HasOneThrough --- src/Actions/WriteRelationship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index f1d74ca..e51391f 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -24,7 +24,7 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput $relation = match ($relation['type']) { 'BelongsToMany', 'BelongToManyThrough', 'HasMany', 'HasManyThrough', 'MorphToMany', 'MorphMany' => Str::plural($relatedModel), - 'BelongsTo', 'BelongsToThrough', 'HasOne', 'MorphOne' => Str::singular($relatedModel), + 'BelongsTo', 'BelongsToThrough', 'HasOne', 'HasOneThrough', 'MorphOne' => Str::singular($relatedModel), default => $relatedModel, }; From 98035459e2e0c2742785d532524f10e282a280d5 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 16:56:13 +0200 Subject: [PATCH 03/16] Support only the relationships from Laravel core by default --- src/Actions/WriteRelationship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index e51391f..9c3665f 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -23,7 +23,7 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput $relatedModel = $this->getClassName($relation['related']); $relation = match ($relation['type']) { - 'BelongsToMany', 'BelongToManyThrough', 'HasMany', 'HasManyThrough', 'MorphToMany', 'MorphMany' => Str::plural($relatedModel), + 'BelongsToMany', 'HasMany', 'HasManyThrough', 'MorphToMany', 'MorphMany', 'MorphedByMany' => Str::plural($relatedModel), 'BelongsTo', 'BelongsToThrough', 'HasOne', 'HasOneThrough', 'MorphOne' => Str::singular($relatedModel), default => $relatedModel, }; From 739426d044ee8559f32058bfc0f084ad250518ee Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:28:54 +0200 Subject: [PATCH 04/16] Add --custom-relationships option --- src/Actions/BuildModelDetails.php | 4 ++-- src/Actions/GenerateCliOutput.php | 6 +++--- src/Actions/GenerateJsonOutput.php | 6 +++--- src/Actions/Generator.php | 10 ++++----- src/Actions/RunModelShowCommand.php | 5 +++-- src/Commands/ModelTyperCommand.php | 11 +++++++--- src/Commands/ShowModelCommand.php | 33 +++++++++++++++++++++++++++++ src/ModelTyperServiceProvider.php | 2 ++ 8 files changed, 59 insertions(+), 18 deletions(-) create mode 100644 src/Commands/ShowModelCommand.php diff --git a/src/Actions/BuildModelDetails.php b/src/Actions/BuildModelDetails.php index 4635422..dc4d198 100644 --- a/src/Actions/BuildModelDetails.php +++ b/src/Actions/BuildModelDetails.php @@ -20,12 +20,12 @@ class BuildModelDetails * * @throws ReflectionException */ - public function __invoke(SplFileInfo $modelFile): array + public function __invoke(SplFileInfo $modelFile, array $customRelationships = []): array { $modelFileArg = $modelFile->getRelativePathname(); $modelFileArg = str_replace('.php', '', $modelFileArg); - $modelDetails = app(RunModelShowCommand::class)($modelFileArg); + $modelDetails = app(RunModelShowCommand::class)($modelFileArg, $customRelationships); $reflectionModel = $this->getRefInterface($modelDetails); $laravelModel = $reflectionModel->newInstance(); diff --git a/src/Actions/GenerateCliOutput.php b/src/Actions/GenerateCliOutput.php index b272c73..6e75bfe 100644 --- a/src/Actions/GenerateCliOutput.php +++ b/src/Actions/GenerateCliOutput.php @@ -27,7 +27,7 @@ class GenerateCliOutput * * @param Collection $models */ - public function __invoke(Collection $models, bool $global = false, bool $plurals = false, bool $apiResources = false): string + public function __invoke(Collection $models, bool $global = false, bool $plurals = false, bool $apiResources = false, array $customRelationships = []): string { $modelBuilder = app(BuildModelDetails::class); $colAttrWriter = app(WriteColumnAttribute::class); @@ -38,7 +38,7 @@ public function __invoke(Collection $models, bool $global = false, bool $plurals $this->indent = ' '; } - $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter, $plurals, $apiResources) { + $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter, $plurals, $apiResources, $customRelationships) { $entry = ''; [ @@ -49,7 +49,7 @@ public function __invoke(Collection $models, bool $global = false, bool $plurals 'relations' => $relations, 'interfaces' => $interfaces, 'imports' => $imports, - ] = $modelBuilder($model); + ] = $modelBuilder($model, $customRelationships); $this->imports = array_merge($this->imports, $imports->toArray()); diff --git a/src/Actions/GenerateJsonOutput.php b/src/Actions/GenerateJsonOutput.php index 7f6291b..442b55f 100644 --- a/src/Actions/GenerateJsonOutput.php +++ b/src/Actions/GenerateJsonOutput.php @@ -22,14 +22,14 @@ class GenerateJsonOutput * @param Collection $models * @return string */ - public function __invoke(Collection $models): string + public function __invoke(Collection $models, array $customRelationships = []): string { $modelBuilder = app(BuildModelDetails::class); $colAttrWriter = app(WriteColumnAttribute::class); $relationWriter = app(WriteRelationship::class); $enumWriter = app(WriteEnumConst::class); - $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter) { + $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter, $customRelationships) { [ 'reflectionModel' => $reflectionModel, 'name' => $name, @@ -37,7 +37,7 @@ public function __invoke(Collection $models): string 'nonColumns' => $nonColumns, 'relations' => $relations, 'interfaces' => $interfaces, - ] = $modelBuilder($model); + ] = $modelBuilder($model, $customRelationships); $this->output['interfaces'][$name] = $columns ->merge($nonColumns) diff --git a/src/Actions/Generator.php b/src/Actions/Generator.php index 3af6793..530b58d 100644 --- a/src/Actions/Generator.php +++ b/src/Actions/Generator.php @@ -13,11 +13,11 @@ class Generator * * @return string */ - public function __invoke(?string $specificModel = null, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false) + public function __invoke(?string $specificModel = null, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false, array $customRelationships = []) { $models = $this->getModels($specificModel); - return $this->display($models, $global, $json, $plurals, $apiResources); + return $this->display($models, $global, $json, $plurals, $apiResources, $customRelationships); } /** @@ -41,16 +41,16 @@ protected function getModels(?string $model = null): Collection * * @param Collection $models */ - protected function display(Collection $models, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false): string + protected function display(Collection $models, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false, array $customRelationships = []): string { if ($models->isEmpty()) { return 'ERROR: No models found.'; } if ($json) { - return app(GenerateJsonOutput::class)($models); + return app(GenerateJsonOutput::class)($models, $customRelationships); } - return app(GenerateCliOutput::class)($models, $global, $plurals, $apiResources); + return app(GenerateCliOutput::class)($models, $global, $plurals, $apiResources, $customRelationships); } } diff --git a/src/Actions/RunModelShowCommand.php b/src/Actions/RunModelShowCommand.php index ea8a3a4..543ca8f 100644 --- a/src/Actions/RunModelShowCommand.php +++ b/src/Actions/RunModelShowCommand.php @@ -17,9 +17,10 @@ class RunModelShowCommand * * @throws Exception */ - public function __invoke(string $model): array + public function __invoke(string $model, array $customRelationships = []): array { - $exitCode = Artisan::call("model:show {$model} --json --no-interaction"); + $relationships = implode(',', $customRelationships); + $exitCode = Artisan::call("model:typer-show {$model} --json --no-interaction --relationships=$relationships"); if ($exitCode !== 0) { throw new Exception('You may need to install the doctrine/dbal package to use this command.'); diff --git a/src/Commands/ModelTyperCommand.php b/src/Commands/ModelTyperCommand.php index a97db13..deeb882 100644 --- a/src/Commands/ModelTyperCommand.php +++ b/src/Commands/ModelTyperCommand.php @@ -25,8 +25,8 @@ class ModelTyperCommand extends Command {--json : Output the result as json} {--plurals : Output model plurals} {--api-resources : Output api.MetApi interfaces} - {--all : Enable all output options (equivalent to --plurals --api-resources)}'; - + {--all : Enable all output options (equivalent to --plurals --api-resources)} + {--custom-relationships : Custom relationships that should be included, separated by commas}'; /** * The console command description. * @@ -60,8 +60,13 @@ public function handle(Generator $generator): int $plurals = $this->option('json') || $this->option('all'); $apiResources = $this->option('api-resources') || $this->option('all'); + $customRelationships = []; + + if($this->option('custom-relationships')) { + $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); + } - echo $generator($this->option('model'), $this->option('global'), $this->option('json'), $plurals, $apiResources); + echo $generator($this->option('model'), $this->option('global'), $this->option('json'), $plurals, $apiResources, $customRelationships); return Command::SUCCESS; } diff --git a/src/Commands/ShowModelCommand.php b/src/Commands/ShowModelCommand.php new file mode 100644 index 0000000..d4eb8c0 --- /dev/null +++ b/src/Commands/ShowModelCommand.php @@ -0,0 +1,33 @@ +option('custom-relationships')))->map(fn($method) => trim($method)); + $this->relationMethods = array_merge($this->relationMethods, $customMethods); + } +} diff --git a/src/ModelTyperServiceProvider.php b/src/ModelTyperServiceProvider.php index 9e4eb08..ed6c520 100644 --- a/src/ModelTyperServiceProvider.php +++ b/src/ModelTyperServiceProvider.php @@ -3,6 +3,7 @@ namespace FumeApp\ModelTyper; use FumeApp\ModelTyper\Commands\ModelTyperCommand; +use FumeApp\ModelTyper\Commands\ShowModelCommand; use Illuminate\Support\ServiceProvider; class ModelTyperServiceProvider extends ServiceProvider @@ -17,6 +18,7 @@ public function boot(): void if ($this->app->runningInConsole()) { $this->commands([ ModelTyperCommand::class, + ShowModelCommand::class ]); } } From 160d6e8ccddc49759a0f42d712774fb3c4278af1 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:37:01 +0200 Subject: [PATCH 05/16] Move input using code from ShowModelCommand constructor to handle --- src/Commands/ShowModelCommand.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/Commands/ShowModelCommand.php b/src/Commands/ShowModelCommand.php index d4eb8c0..477c48d 100644 --- a/src/Commands/ShowModelCommand.php +++ b/src/Commands/ShowModelCommand.php @@ -18,16 +18,24 @@ class ShowModelCommand extends BaseCommand {--database= : The database connection to use} {--json : Output the model as JSON}'; - /** - * Create a new command instance. - * - * @return void - */ - public function __construct(Composer $composer = null) - { - parent::__construct($composer); + // /** + // * Create a new command instance. + // * + // * @return void + // */ + // public function __construct(Composer $composer = null) + // { + // parent::__construct($composer); + + // $customMethods = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); + // $this->relationMethods = array_merge($this->relationMethods, $customMethods); + // } + public function handle() + { $customMethods = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); $this->relationMethods = array_merge($this->relationMethods, $customMethods); + + parent::handle(); } } From 8c3577be45a52c8e90bce2b670103a5c6839e3b0 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:38:37 +0200 Subject: [PATCH 06/16] Convert customRelationships toArray --- src/Commands/ShowModelCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/ShowModelCommand.php b/src/Commands/ShowModelCommand.php index 477c48d..74f00be 100644 --- a/src/Commands/ShowModelCommand.php +++ b/src/Commands/ShowModelCommand.php @@ -33,8 +33,8 @@ class ShowModelCommand extends BaseCommand public function handle() { - $customMethods = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); - $this->relationMethods = array_merge($this->relationMethods, $customMethods); + $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); + $this->relationMethods = array_merge($this->relationMethods, $customRelationships->toArray()); parent::handle(); } From 54eb0ba0798a43c5c11fb74f63481521f965ea81 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:41:46 +0200 Subject: [PATCH 07/16] Remove unused code --- src/Commands/ShowModelCommand.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Commands/ShowModelCommand.php b/src/Commands/ShowModelCommand.php index 74f00be..c1e9bbe 100644 --- a/src/Commands/ShowModelCommand.php +++ b/src/Commands/ShowModelCommand.php @@ -3,7 +3,6 @@ namespace FumeApp\ModelTyper\Commands; use Illuminate\Foundation\Console\ShowModelCommand as BaseCommand; -use Illuminate\Support\Composer; /** * A wrapper command for Laravel default model:show to add customizaton for model generation. @@ -18,19 +17,6 @@ class ShowModelCommand extends BaseCommand {--database= : The database connection to use} {--json : Output the model as JSON}'; - // /** - // * Create a new command instance. - // * - // * @return void - // */ - // public function __construct(Composer $composer = null) - // { - // parent::__construct($composer); - - // $customMethods = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); - // $this->relationMethods = array_merge($this->relationMethods, $customMethods); - // } - public function handle() { $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); From 8d2e0adb1432d3cd70e3e12d4be862f640b20b74 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:42:02 +0200 Subject: [PATCH 08/16] Fix customrelationships option not accepting a value --- src/Commands/ModelTyperCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/ModelTyperCommand.php b/src/Commands/ModelTyperCommand.php index deeb882..beb709f 100644 --- a/src/Commands/ModelTyperCommand.php +++ b/src/Commands/ModelTyperCommand.php @@ -26,7 +26,7 @@ class ModelTyperCommand extends Command {--plurals : Output model plurals} {--api-resources : Output api.MetApi interfaces} {--all : Enable all output options (equivalent to --plurals --api-resources)} - {--custom-relationships : Custom relationships that should be included, separated by commas}'; + {--custom-relationships= : Custom relationships that should be included, separated by commas}'; /** * The console command description. * From 0c5da8d8bde0275b04c0321dd73968a4fc1d4a46 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:42:52 +0200 Subject: [PATCH 09/16] Fix custom relationships type --- src/Commands/ModelTyperCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/ModelTyperCommand.php b/src/Commands/ModelTyperCommand.php index beb709f..92dae35 100644 --- a/src/Commands/ModelTyperCommand.php +++ b/src/Commands/ModelTyperCommand.php @@ -63,7 +63,7 @@ public function handle(Generator $generator): int $customRelationships = []; if($this->option('custom-relationships')) { - $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method)); + $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method))->toArray(); } echo $generator($this->option('model'), $this->option('global'), $this->option('json'), $plurals, $apiResources, $customRelationships); From 9c5e8d15fa56eed6e25e13f809722bb5df129ea2 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:44:06 +0200 Subject: [PATCH 10/16] Use the correct option name when calling RunModelShowCommand --- src/Actions/RunModelShowCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/RunModelShowCommand.php b/src/Actions/RunModelShowCommand.php index 543ca8f..2fa8f3b 100644 --- a/src/Actions/RunModelShowCommand.php +++ b/src/Actions/RunModelShowCommand.php @@ -20,7 +20,7 @@ class RunModelShowCommand public function __invoke(string $model, array $customRelationships = []): array { $relationships = implode(',', $customRelationships); - $exitCode = Artisan::call("model:typer-show {$model} --json --no-interaction --relationships=$relationships"); + $exitCode = Artisan::call("model:typer-show {$model} --json --no-interaction --custom-relationships=$relationships"); if ($exitCode !== 0) { throw new Exception('You may need to install the doctrine/dbal package to use this command.'); From 0ddecbd5ecd6f8367fab82aee19955b8f9081267 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 17:51:37 +0200 Subject: [PATCH 11/16] Make sure relationships match ones supported by core Laravel --- src/Actions/WriteRelationship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index 9c3665f..8272234 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -24,7 +24,7 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput $relation = match ($relation['type']) { 'BelongsToMany', 'HasMany', 'HasManyThrough', 'MorphToMany', 'MorphMany', 'MorphedByMany' => Str::plural($relatedModel), - 'BelongsTo', 'BelongsToThrough', 'HasOne', 'HasOneThrough', 'MorphOne' => Str::singular($relatedModel), + 'BelongsTo', 'HasOne', 'HasOneThrough', 'MorphOne', 'MorphTo' => Str::singular($relatedModel), default => $relatedModel, }; From 1fc4fb4d1ba301c4e135c9bb2b7b49d8a0c4abf9 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 18:11:01 +0200 Subject: [PATCH 12/16] Use config for custom relationships instead of console args --- config/modeltyper.php | 19 +++++++++++++++++++ src/Actions/BuildModelDetails.php | 4 ++-- src/Actions/GenerateCliOutput.php | 6 +++--- src/Actions/GenerateJsonOutput.php | 6 +++--- src/Actions/Generator.php | 10 +++++----- src/Actions/RunModelShowCommand.php | 5 +++-- src/Actions/WriteRelationship.php | 8 ++++++++ src/Commands/ModelTyperCommand.php | 10 ++-------- src/ModelTyperServiceProvider.php | 4 ++++ 9 files changed, 49 insertions(+), 23 deletions(-) create mode 100644 config/modeltyper.php diff --git a/config/modeltyper.php b/config/modeltyper.php new file mode 100644 index 0000000..3b6c633 --- /dev/null +++ b/config/modeltyper.php @@ -0,0 +1,19 @@ + [ + 'singular' => [ + // custom relationships that return a single model + // 'belongsToThrough', + ], + 'plural' => [ + // custom relationships that return multiple models + ] + ] +]; diff --git a/src/Actions/BuildModelDetails.php b/src/Actions/BuildModelDetails.php index dc4d198..4635422 100644 --- a/src/Actions/BuildModelDetails.php +++ b/src/Actions/BuildModelDetails.php @@ -20,12 +20,12 @@ class BuildModelDetails * * @throws ReflectionException */ - public function __invoke(SplFileInfo $modelFile, array $customRelationships = []): array + public function __invoke(SplFileInfo $modelFile): array { $modelFileArg = $modelFile->getRelativePathname(); $modelFileArg = str_replace('.php', '', $modelFileArg); - $modelDetails = app(RunModelShowCommand::class)($modelFileArg, $customRelationships); + $modelDetails = app(RunModelShowCommand::class)($modelFileArg); $reflectionModel = $this->getRefInterface($modelDetails); $laravelModel = $reflectionModel->newInstance(); diff --git a/src/Actions/GenerateCliOutput.php b/src/Actions/GenerateCliOutput.php index 6e75bfe..b272c73 100644 --- a/src/Actions/GenerateCliOutput.php +++ b/src/Actions/GenerateCliOutput.php @@ -27,7 +27,7 @@ class GenerateCliOutput * * @param Collection $models */ - public function __invoke(Collection $models, bool $global = false, bool $plurals = false, bool $apiResources = false, array $customRelationships = []): string + public function __invoke(Collection $models, bool $global = false, bool $plurals = false, bool $apiResources = false): string { $modelBuilder = app(BuildModelDetails::class); $colAttrWriter = app(WriteColumnAttribute::class); @@ -38,7 +38,7 @@ public function __invoke(Collection $models, bool $global = false, bool $plurals $this->indent = ' '; } - $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter, $plurals, $apiResources, $customRelationships) { + $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter, $plurals, $apiResources) { $entry = ''; [ @@ -49,7 +49,7 @@ public function __invoke(Collection $models, bool $global = false, bool $plurals 'relations' => $relations, 'interfaces' => $interfaces, 'imports' => $imports, - ] = $modelBuilder($model, $customRelationships); + ] = $modelBuilder($model); $this->imports = array_merge($this->imports, $imports->toArray()); diff --git a/src/Actions/GenerateJsonOutput.php b/src/Actions/GenerateJsonOutput.php index 442b55f..7f6291b 100644 --- a/src/Actions/GenerateJsonOutput.php +++ b/src/Actions/GenerateJsonOutput.php @@ -22,14 +22,14 @@ class GenerateJsonOutput * @param Collection $models * @return string */ - public function __invoke(Collection $models, array $customRelationships = []): string + public function __invoke(Collection $models): string { $modelBuilder = app(BuildModelDetails::class); $colAttrWriter = app(WriteColumnAttribute::class); $relationWriter = app(WriteRelationship::class); $enumWriter = app(WriteEnumConst::class); - $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter, $customRelationships) { + $models->each(function (SplFileInfo $model) use ($modelBuilder, $colAttrWriter, $relationWriter) { [ 'reflectionModel' => $reflectionModel, 'name' => $name, @@ -37,7 +37,7 @@ public function __invoke(Collection $models, array $customRelationships = []): s 'nonColumns' => $nonColumns, 'relations' => $relations, 'interfaces' => $interfaces, - ] = $modelBuilder($model, $customRelationships); + ] = $modelBuilder($model); $this->output['interfaces'][$name] = $columns ->merge($nonColumns) diff --git a/src/Actions/Generator.php b/src/Actions/Generator.php index 530b58d..3af6793 100644 --- a/src/Actions/Generator.php +++ b/src/Actions/Generator.php @@ -13,11 +13,11 @@ class Generator * * @return string */ - public function __invoke(?string $specificModel = null, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false, array $customRelationships = []) + public function __invoke(?string $specificModel = null, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false) { $models = $this->getModels($specificModel); - return $this->display($models, $global, $json, $plurals, $apiResources, $customRelationships); + return $this->display($models, $global, $json, $plurals, $apiResources); } /** @@ -41,16 +41,16 @@ protected function getModels(?string $model = null): Collection * * @param Collection $models */ - protected function display(Collection $models, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false, array $customRelationships = []): string + protected function display(Collection $models, bool $global = false, bool $json = false, bool $plurals = false, bool $apiResources = false): string { if ($models->isEmpty()) { return 'ERROR: No models found.'; } if ($json) { - return app(GenerateJsonOutput::class)($models, $customRelationships); + return app(GenerateJsonOutput::class)($models); } - return app(GenerateCliOutput::class)($models, $global, $plurals, $apiResources, $customRelationships); + return app(GenerateCliOutput::class)($models, $global, $plurals, $apiResources); } } diff --git a/src/Actions/RunModelShowCommand.php b/src/Actions/RunModelShowCommand.php index 2fa8f3b..9d90157 100644 --- a/src/Actions/RunModelShowCommand.php +++ b/src/Actions/RunModelShowCommand.php @@ -3,6 +3,7 @@ namespace FumeApp\ModelTyper\Actions; use Exception; +use Illuminate\Support\Arr; use Illuminate\Support\Facades\Artisan; class RunModelShowCommand @@ -17,9 +18,9 @@ class RunModelShowCommand * * @throws Exception */ - public function __invoke(string $model, array $customRelationships = []): array + public function __invoke(string $model): array { - $relationships = implode(',', $customRelationships); + $relationships = implode(',', Arr::flatten(config('modeltyper.custom_relationships', []))); $exitCode = Artisan::call("model:typer-show {$model} --json --no-interaction --custom-relationships=$relationships"); if ($exitCode !== 0) { diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index 8272234..5838eb4 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -28,6 +28,14 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput default => $relatedModel, }; + if(in_array($relation['type'], config('modeltyper.custom_relationships.singular'))) { + $relation = Str::singular($relation['type']); + } + + if(in_array($relation['type'], config('modeltyper.custom_relationships.plural'))) { + $relation = Str::plural($relation['type']); + } + if ($jsonOutput) { return [ 'name' => $name, diff --git a/src/Commands/ModelTyperCommand.php b/src/Commands/ModelTyperCommand.php index 92dae35..bd04460 100644 --- a/src/Commands/ModelTyperCommand.php +++ b/src/Commands/ModelTyperCommand.php @@ -25,8 +25,7 @@ class ModelTyperCommand extends Command {--json : Output the result as json} {--plurals : Output model plurals} {--api-resources : Output api.MetApi interfaces} - {--all : Enable all output options (equivalent to --plurals --api-resources)} - {--custom-relationships= : Custom relationships that should be included, separated by commas}'; + {--all : Enable all output options (equivalent to --plurals --api-resources)}'; /** * The console command description. * @@ -60,13 +59,8 @@ public function handle(Generator $generator): int $plurals = $this->option('json') || $this->option('all'); $apiResources = $this->option('api-resources') || $this->option('all'); - $customRelationships = []; - if($this->option('custom-relationships')) { - $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method))->toArray(); - } - - echo $generator($this->option('model'), $this->option('global'), $this->option('json'), $plurals, $apiResources, $customRelationships); + echo $generator($this->option('model'), $this->option('global'), $this->option('json'), $plurals, $apiResources); return Command::SUCCESS; } diff --git a/src/ModelTyperServiceProvider.php b/src/ModelTyperServiceProvider.php index ed6c520..1f9e837 100644 --- a/src/ModelTyperServiceProvider.php +++ b/src/ModelTyperServiceProvider.php @@ -15,6 +15,10 @@ class ModelTyperServiceProvider extends ServiceProvider */ public function boot(): void { + $this->publishes([ + __DIR__ . '/../config/modeltyper.php' => config_path('modeltyper.php') + ]); + if ($this->app->runningInConsole()) { $this->commands([ ModelTyperCommand::class, From 0ef59918dd347ea180b0e675cfe5923dc1688f35 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 18:17:23 +0200 Subject: [PATCH 13/16] Fix WriteRelationship relation type --- src/Actions/WriteRelationship.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index 5838eb4..1184c4f 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -22,27 +22,27 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput $name = Str::snake($relation['name']); $relatedModel = $this->getClassName($relation['related']); - $relation = match ($relation['type']) { + $relationType = match ($relation['type']) { 'BelongsToMany', 'HasMany', 'HasManyThrough', 'MorphToMany', 'MorphMany', 'MorphedByMany' => Str::plural($relatedModel), 'BelongsTo', 'HasOne', 'HasOneThrough', 'MorphOne', 'MorphTo' => Str::singular($relatedModel), default => $relatedModel, }; if(in_array($relation['type'], config('modeltyper.custom_relationships.singular'))) { - $relation = Str::singular($relation['type']); + $relationType = Str::singular($relation['type']); } if(in_array($relation['type'], config('modeltyper.custom_relationships.plural'))) { - $relation = Str::plural($relation['type']); + $relationType = Str::singular($relation['type']); } if ($jsonOutput) { return [ 'name' => $name, - 'type' => $relation, + 'type' => $relationType, ]; } - return "{$indent} {$name}: {$relation}\n"; + return "{$indent} {$name}: {$relationType}\n"; } } From e139a897c417b63af55c52e3d4c1626a35e111d1 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 18:18:30 +0200 Subject: [PATCH 14/16] Add default values for config --- src/Actions/WriteRelationship.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Actions/WriteRelationship.php b/src/Actions/WriteRelationship.php index 1184c4f..2412aab 100644 --- a/src/Actions/WriteRelationship.php +++ b/src/Actions/WriteRelationship.php @@ -28,11 +28,11 @@ public function __invoke(array $relation, string $indent = '', bool $jsonOutput default => $relatedModel, }; - if(in_array($relation['type'], config('modeltyper.custom_relationships.singular'))) { + if(in_array($relation['type'], config('modeltyper.custom_relationships.singular', []))) { $relationType = Str::singular($relation['type']); } - if(in_array($relation['type'], config('modeltyper.custom_relationships.plural'))) { + if(in_array($relation['type'], config('modeltyper.custom_relationships.plural', []))) { $relationType = Str::singular($relation['type']); } From c6d8cc74b1b422f3f6721676214ca5e31532b3ea Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 18:21:59 +0200 Subject: [PATCH 15/16] Add original CR --- src/Commands/ModelTyperCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Commands/ModelTyperCommand.php b/src/Commands/ModelTyperCommand.php index bd04460..a97db13 100644 --- a/src/Commands/ModelTyperCommand.php +++ b/src/Commands/ModelTyperCommand.php @@ -26,6 +26,7 @@ class ModelTyperCommand extends Command {--plurals : Output model plurals} {--api-resources : Output api.MetApi interfaces} {--all : Enable all output options (equivalent to --plurals --api-resources)}'; + /** * The console command description. * From 372b6b478723a63ac58a7ce8c477871b737f80c7 Mon Sep 17 00:00:00 2001 From: Jyri Mikkola Date: Fri, 24 Feb 2023 22:02:39 +0200 Subject: [PATCH 16/16] Use Laravel 10 for requirements and ShowModelCommand --- composer.json | 4 +- composer.lock | 847 +++++++++++++----------------- src/Commands/ShowModelCommand.php | 2 +- 3 files changed, 361 insertions(+), 492 deletions(-) diff --git a/composer.json b/composer.json index 2c5db6b..0123581 100644 --- a/composer.json +++ b/composer.json @@ -15,11 +15,11 @@ ], "require": { "php": "^8.1", - "illuminate/support": "9.*|10.*" + "illuminate/support": "9.*|10.*", + "illuminate/database": "^10.0.0" }, "require-dev": { "spatie/laravel-ray": "^1.17", - "illuminate/database": "^9.45", "mockery/mockery": "^1.4.4", "orchestra/testbench": "^7.0|^8.0", "phpunit/phpunit": "^9.5|^10.0", diff --git a/composer.lock b/composer.lock index d45b4ec..a751790 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f87f3e7c3c194bd162c872852a999207", + "content-hash": "2503e371a0ad9cce2462353698f537c7", "packages": [ { "name": "brick/math", @@ -652,20 +652,21 @@ }, { "name": "laravel/framework", - "version": "v9.52.0", + "version": "v10.1.5", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "eb85cd9d72e5bfa54b4d0d9040786f26d6184a9e" + "reference": "57850ab537cf0554b5b616215079c761b98168c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/eb85cd9d72e5bfa54b4d0d9040786f26d6184a9e", - "reference": "eb85cd9d72e5bfa54b4d0d9040786f26d6184a9e", + "url": "https://api.github.com/repos/laravel/framework/zipball/57850ab537cf0554b5b616215079c761b98168c8", + "reference": "57850ab537cf0554b5b616215079c761b98168c8", "shasum": "" }, "require": { "brick/math": "^0.9.3|^0.10.2|^0.11", + "composer-runtime-api": "^2.2", "doctrine/inflector": "^2.0.5", "dragonmantank/cron-expression": "^3.3.2", "egulias/email-validator": "^3.2.1|^4.0", @@ -678,28 +679,28 @@ "ext-tokenizer": "*", "fruitcake/php-cors": "^1.2", "guzzlehttp/uri-template": "^1.0", - "laravel/serializable-closure": "^1.2.2", + "laravel/serializable-closure": "^1.3", "league/commonmark": "^2.2.1", "league/flysystem": "^3.8.0", - "monolog/monolog": "^2.0", + "monolog/monolog": "^3.0", "nesbot/carbon": "^2.62.1", "nunomaduro/termwind": "^1.13", - "php": "^8.0.2", + "php": "^8.1", "psr/container": "^1.1.1|^2.0.1", "psr/log": "^1.0|^2.0|^3.0", "psr/simple-cache": "^1.0|^2.0|^3.0", "ramsey/uuid": "^4.7", - "symfony/console": "^6.0.9", - "symfony/error-handler": "^6.0", - "symfony/finder": "^6.0", - "symfony/http-foundation": "^6.0", - "symfony/http-kernel": "^6.0", - "symfony/mailer": "^6.0", - "symfony/mime": "^6.0", - "symfony/process": "^6.0", - "symfony/routing": "^6.0", - "symfony/uid": "^6.0", - "symfony/var-dumper": "^6.0", + "symfony/console": "^6.2", + "symfony/error-handler": "^6.2", + "symfony/finder": "^6.2", + "symfony/http-foundation": "^6.2", + "symfony/http-kernel": "^6.2", + "symfony/mailer": "^6.2", + "symfony/mime": "^6.2", + "symfony/process": "^6.2", + "symfony/routing": "^6.2", + "symfony/uid": "^6.2", + "symfony/var-dumper": "^6.2", "tijsverkoyen/css-to-inline-styles": "^2.2.5", "vlucas/phpdotenv": "^5.4.1", "voku/portable-ascii": "^2.0" @@ -735,6 +736,7 @@ "illuminate/notifications": "self.version", "illuminate/pagination": "self.version", "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", "illuminate/queue": "self.version", "illuminate/redis": "self.version", "illuminate/routing": "self.version", @@ -748,7 +750,7 @@ "require-dev": { "ably/ably-php": "^1.0", "aws/aws-sdk-php": "^3.235.5", - "doctrine/dbal": "^2.13.3|^3.1.4", + "doctrine/dbal": "^3.5.1", "ext-gmp": "*", "fakerphp/faker": "^1.21", "guzzlehttp/guzzle": "^7.5", @@ -758,20 +760,20 @@ "league/flysystem-read-only": "^3.3", "league/flysystem-sftp-v3": "^3.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^7.16", + "orchestra/testbench-core": "^8.0", "pda/pheanstalk": "^4.0", "phpstan/phpdoc-parser": "^1.15", "phpstan/phpstan": "^1.4.7", - "phpunit/phpunit": "^9.5.8", - "predis/predis": "^1.1.9|^2.0.2", - "symfony/cache": "^6.0", - "symfony/http-client": "^6.0" + "phpunit/phpunit": "^10.0.7", + "predis/predis": "^2.0.2", + "symfony/cache": "^6.2", + "symfony/http-client": "^6.2.4" }, "suggest": { "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.235.5).", "brianium/paratest": "Required to run tests in parallel (^6.0).", - "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).", + "doctrine/dbal": "Required to rename columns and drop SQLite columns (^3.5.1).", "ext-apcu": "Required to use the APC cache driver.", "ext-fileinfo": "Required to use the Filesystem class.", "ext-ftp": "Required to use the Flysystem FTP driver.", @@ -793,21 +795,21 @@ "mockery/mockery": "Required to use mocking (^1.5.1).", "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", - "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8).", - "predis/predis": "Required to use the predis connector (^1.1.9|^2.0.2).", + "phpunit/phpunit": "Required to use assertions and run tests (^9.5.8|^10.0.7).", + "predis/predis": "Required to use the predis connector (^2.0.2).", "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0|^7.0).", - "symfony/cache": "Required to PSR-6 cache bridge (^6.0).", - "symfony/filesystem": "Required to enable support for relative symbolic links (^6.0).", - "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.0).", - "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.0).", - "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.0).", + "symfony/cache": "Required to PSR-6 cache bridge (^6.2).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^6.2).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^6.2).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^6.2).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^6.2).", "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "9.x-dev" + "dev-master": "10.x-dev" } }, "autoload": { @@ -846,7 +848,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2023-02-14T14:51:14+00:00" + "time": "2023-02-24T09:57:13+00:00" }, { "name": "laravel/serializable-closure", @@ -910,16 +912,16 @@ }, { "name": "league/commonmark", - "version": "2.3.8", + "version": "2.3.9", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "c493585c130544c4e91d2e0e131e6d35cb0cbc47" + "reference": "c1e114f74e518daca2729ea8c4bf1167038fa4b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/c493585c130544c4e91d2e0e131e6d35cb0cbc47", - "reference": "c493585c130544c4e91d2e0e131e6d35cb0cbc47", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/c1e114f74e518daca2729ea8c4bf1167038fa4b5", + "reference": "c1e114f74e518daca2729ea8c4bf1167038fa4b5", "shasum": "" }, "require": { @@ -1012,7 +1014,7 @@ "type": "tidelift" } ], - "time": "2022-12-10T16:02:17+00:00" + "time": "2023-02-15T14:07:24+00:00" }, { "name": "league/config", @@ -1098,16 +1100,16 @@ }, { "name": "league/flysystem", - "version": "3.12.2", + "version": "3.12.3", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "f6377c709d2275ed6feaf63e44be7a7162b0e77f" + "reference": "81e87e74dd5213795c7846d65089712d2dda90ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/f6377c709d2275ed6feaf63e44be7a7162b0e77f", - "reference": "f6377c709d2275ed6feaf63e44be7a7162b0e77f", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/81e87e74dd5213795c7846d65089712d2dda90ce", + "reference": "81e87e74dd5213795c7846d65089712d2dda90ce", "shasum": "" }, "require": { @@ -1169,7 +1171,7 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.12.2" + "source": "https://github.com/thephpleague/flysystem/tree/3.12.3" }, "funding": [ { @@ -1185,7 +1187,7 @@ "type": "tidelift" } ], - "time": "2023-01-19T12:02:19+00:00" + "time": "2023-02-18T15:32:41+00:00" }, { "name": "league/mime-type-detection", @@ -1245,42 +1247,41 @@ }, { "name": "monolog/monolog", - "version": "2.9.1", + "version": "3.3.1", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "f259e2b15fb95494c83f52d3caad003bbf5ffaa1" + "reference": "9b5daeaffce5b926cac47923798bba91059e60e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f259e2b15fb95494c83f52d3caad003bbf5ffaa1", - "reference": "f259e2b15fb95494c83f52d3caad003bbf5ffaa1", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/9b5daeaffce5b926cac47923798bba91059e60e2", + "reference": "9b5daeaffce5b926cac47923798bba91059e60e2", "shasum": "" }, "require": { - "php": ">=7.2", - "psr/log": "^1.0.1 || ^2.0 || ^3.0" + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" }, "provide": { - "psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" + "psr/log-implementation": "3.0.0" }, "require-dev": { - "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "aws/aws-sdk-php": "^3.0", "doctrine/couchdb": "~1.0@dev", "elasticsearch/elasticsearch": "^7 || ^8", "ext-json": "*", "graylog2/gelf-php": "^1.4.2 || ^2@dev", - "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/guzzle": "^7.4.5", "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", - "phpspec/prophecy": "^1.15", - "phpstan/phpstan": "^0.12.91", - "phpunit/phpunit": "^8.5.14", - "predis/predis": "^1.1 || ^2.0", - "rollbar/rollbar": "^1.3 || ^2 || ^3", + "phpstan/phpstan": "^1.9", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-strict-rules": "^1.4", + "phpunit/phpunit": "^9.5.26", + "predis/predis": "^1.1 || ^2", "ruflin/elastica": "^7", - "swiftmailer/swiftmailer": "^5.3|^6.0", "symfony/mailer": "^5.4 || ^6", "symfony/mime": "^5.4 || ^6" }, @@ -1303,7 +1304,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.x-dev" + "dev-main": "3.x-dev" } }, "autoload": { @@ -1331,7 +1332,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.9.1" + "source": "https://github.com/Seldaek/monolog/tree/3.3.1" }, "funding": [ { @@ -1343,7 +1344,7 @@ "type": "tidelift" } ], - "time": "2023-02-06T13:44:46+00:00" + "time": "2023-02-06T13:46:10+00:00" }, { "name": "nesbot/carbon", @@ -4608,76 +4609,6 @@ } ], "packages-dev": [ - { - "name": "doctrine/instantiator", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "shasum": "" - }, - "require": { - "php": "^8.1" - }, - "require-dev": { - "doctrine/coding-standard": "^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "time": "2022-12-30T00:23:10+00:00" - }, { "name": "fakerphp/faker", "version": "v1.21.0", @@ -4918,16 +4849,16 @@ }, { "name": "laravel/pint", - "version": "v1.5.0", + "version": "v1.6.0", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362" + "reference": "e48e3fadd7863d6b7d03464f5c4f211a828b890f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362", - "reference": "e0a8cef58b74662f27355be9cdea0e726bbac362", + "url": "https://api.github.com/repos/laravel/pint/zipball/e48e3fadd7863d6b7d03464f5c4f211a828b890f", + "reference": "e48e3fadd7863d6b7d03464f5c4f211a828b890f", "shasum": "" }, "require": { @@ -4935,12 +4866,12 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.0" + "php": "^8.1.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.14.4", - "illuminate/view": "^9.51.0", - "laravel-zero/framework": "^9.2.0", + "illuminate/view": "^10.0.0", + "laravel-zero/framework": "^10.0.0", "mockery/mockery": "^1.5.1", "nunomaduro/larastan": "^2.4.0", "nunomaduro/termwind": "^1.15.1", @@ -4980,7 +4911,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2023-02-14T16:31:02+00:00" + "time": "2023-02-21T15:44:57+00:00" }, { "name": "mockery/mockery", @@ -5171,16 +5102,16 @@ }, { "name": "nunomaduro/larastan", - "version": "2.4.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/nunomaduro/larastan.git", - "reference": "14f631348ead3e245651606931863b4f218d1f78" + "reference": "238fdbfba3aae133cdec73e99826c9b0232141f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/larastan/zipball/14f631348ead3e245651606931863b4f218d1f78", - "reference": "14f631348ead3e245651606931863b4f218d1f78", + "url": "https://api.github.com/repos/nunomaduro/larastan/zipball/238fdbfba3aae133cdec73e99826c9b0232141f7", + "reference": "238fdbfba3aae133cdec73e99826c9b0232141f7", "shasum": "" }, "require": { @@ -5243,7 +5174,7 @@ ], "support": { "issues": "https://github.com/nunomaduro/larastan/issues", - "source": "https://github.com/nunomaduro/larastan/tree/2.4.0" + "source": "https://github.com/nunomaduro/larastan/tree/2.4.1" }, "funding": [ { @@ -5263,40 +5194,36 @@ "type": "patreon" } ], - "time": "2023-01-11T11:57:44+00:00" + "time": "2023-02-05T12:19:17+00:00" }, { "name": "orchestra/testbench", - "version": "v7.22.0", + "version": "v8.0.4", "source": { "type": "git", "url": "https://github.com/orchestral/testbench.git", - "reference": "4e16b1adde9d13aff6e4221c841bb82dcd4416f0" + "reference": "2709a4ed984e1c9d3224510dbbd31b5c8763abd9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench/zipball/4e16b1adde9d13aff6e4221c841bb82dcd4416f0", - "reference": "4e16b1adde9d13aff6e4221c841bb82dcd4416f0", + "url": "https://api.github.com/repos/orchestral/testbench/zipball/2709a4ed984e1c9d3224510dbbd31b5c8763abd9", + "reference": "2709a4ed984e1c9d3224510dbbd31b5c8763abd9", "shasum": "" }, "require": { + "composer-runtime-api": "^2.2", "fakerphp/faker": "^1.21", - "laravel/framework": "^9.50.2", + "laravel/framework": ">=10.1.5 <10.2.0", "mockery/mockery": "^1.5.1", - "orchestra/testbench-core": "^7.22", - "php": "^8.0", - "phpunit/phpunit": "^9.5.10", - "spatie/laravel-ray": "^1.28", - "symfony/process": "^6.0.9", - "symfony/yaml": "^6.0.9", + "orchestra/testbench-core": ">=8.0.2 <8.1.0", + "php": "^8.1", + "phpunit/phpunit": "^9.6 || ^10.0.7", + "spatie/laravel-ray": "^1.32", + "symfony/process": "^6.2", + "symfony/yaml": "^6.2", "vlucas/phpdotenv": "^5.4.1" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "7.0-dev" - } - }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" @@ -5320,50 +5247,51 @@ ], "support": { "issues": "https://github.com/orchestral/testbench/issues", - "source": "https://github.com/orchestral/testbench/tree/v7.22.0" + "source": "https://github.com/orchestral/testbench/tree/v8.0.4" }, - "time": "2023-02-08T02:31:25+00:00" + "time": "2023-02-24T10:25:11+00:00" }, { "name": "orchestra/testbench-core", - "version": "v7.22.0", + "version": "v8.0.3", "source": { "type": "git", "url": "https://github.com/orchestral/testbench-core.git", - "reference": "a6e4240149ffc1bb3068a68fe4261a5b59753079" + "reference": "516f1eaa468f447715eee503e59531181ab9552c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/a6e4240149ffc1bb3068a68fe4261a5b59753079", - "reference": "a6e4240149ffc1bb3068a68fe4261a5b59753079", + "url": "https://api.github.com/repos/orchestral/testbench-core/zipball/516f1eaa468f447715eee503e59531181ab9552c", + "reference": "516f1eaa468f447715eee503e59531181ab9552c", "shasum": "" }, "require": { - "php": "^8.0" + "composer-runtime-api": "^2.2", + "php": "^8.1" }, "require-dev": { "fakerphp/faker": "^1.21", - "laravel/framework": "^9.50.2", - "laravel/pint": "^1.4", + "laravel/framework": "^10.1.4", + "laravel/pint": "^1.6", "mockery/mockery": "^1.5.1", - "orchestra/canvas": "^7.0", - "phpstan/phpstan": "^1.9.14", - "phpunit/phpunit": "^9.5.10", - "spatie/laravel-ray": "^1.28", - "symfony/process": "^6.0.9", - "symfony/yaml": "^6.0.9", + "orchestra/canvas": "^8.0", + "phpstan/phpstan": "^1.10.1", + "phpunit/phpunit": "^9.6 || ^10.0.7", + "spatie/laravel-ray": "^1.32", + "symfony/process": "^6.2", + "symfony/yaml": "^6.2", "vlucas/phpdotenv": "^5.4.1" }, "suggest": { - "brianium/paratest": "Allow using parallel tresting (^6.4).", + "brianium/paratest": "Allow using parallel tresting (^6.4 || ^7.0).", "fakerphp/faker": "Allow using Faker for testing (^1.21).", - "laravel/framework": "Required for testing (^9.50.2).", + "laravel/framework": "Required for testing (^10.1.4).", "mockery/mockery": "Allow using Mockery for testing (^1.5.1).", - "nunomaduro/collision": "Allow using Laravel style tests output and parallel testing (^6.2).", - "orchestra/testbench-browser-kit": "Allow using legacy Laravel BrowserKit for testing (^7.0).", - "orchestra/testbench-dusk": "Allow using Laravel Dusk for testing (^7.0).", - "phpunit/phpunit": "Allow using PHPUnit for testing (^9.5.10).", - "symfony/yaml": "Required for CLI Commander (^6.0.9).", + "nunomaduro/collision": "Allow using Laravel style tests output and parallel testing (^6.4 || ^7.0).", + "orchestra/testbench-browser-kit": "Allow using legacy Laravel BrowserKit for testing (^8.0).", + "orchestra/testbench-dusk": "Allow using Laravel Dusk for testing (^8.0).", + "phpunit/phpunit": "Allow using PHPUnit for testing (^9.6 || ^10.0.7).", + "symfony/yaml": "Required for CLI Commander (^6.2).", "vlucas/phpdotenv": "Required for CLI Commander (^5.4.1)." }, "bin": [ @@ -5372,7 +5300,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.0-dev" + "dev-master": "9.0-dev" } }, "autoload": { @@ -5408,7 +5336,7 @@ "issues": "https://github.com/orchestral/testbench/issues", "source": "https://github.com/orchestral/testbench-core" }, - "time": "2023-02-08T02:19:30+00:00" + "time": "2023-02-24T00:36:23+00:00" }, { "name": "phar-io/manifest", @@ -5610,16 +5538,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.9.17", + "version": "1.10.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "204e459e7822f2c586463029f5ecec31bb45a1f2" + "reference": "a2ffec7db373d8da4973d1d62add872db5cd22dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/204e459e7822f2c586463029f5ecec31bb45a1f2", - "reference": "204e459e7822f2c586463029f5ecec31bb45a1f2", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a2ffec7db373d8da4973d1d62add872db5cd22dd", + "reference": "a2ffec7db373d8da4973d1d62add872db5cd22dd", "shasum": "" }, "require": { @@ -5649,7 +5577,7 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.9.17" + "source": "https://github.com/phpstan/phpstan/tree/1.10.2" }, "funding": [ { @@ -5665,20 +5593,20 @@ "type": "tidelift" } ], - "time": "2023-02-08T12:25:00+00:00" + "time": "2023-02-23T14:36:46+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.24", + "version": "10.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed" + "reference": "bf4fbc9c13af7da12b3ea807574fb460f255daba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2cf940ebc6355a9d430462811b5aaa308b174bed", - "reference": "2cf940ebc6355a9d430462811b5aaa308b174bed", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/bf4fbc9c13af7da12b3ea807574fb460f255daba", + "reference": "bf4fbc9c13af7da12b3ea807574fb460f255daba", "shasum": "" }, "require": { @@ -5686,18 +5614,18 @@ "ext-libxml": "*", "ext-xmlwriter": "*", "nikic/php-parser": "^4.14", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.3", - "phpunit/php-text-template": "^2.0.2", - "sebastian/code-unit-reverse-lookup": "^2.0.2", - "sebastian/complexity": "^2.0", - "sebastian/environment": "^5.1.2", - "sebastian/lines-of-code": "^1.0.3", - "sebastian/version": "^3.0.1", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-text-template": "^3.0", + "sebastian/code-unit-reverse-lookup": "^3.0", + "sebastian/complexity": "^3.0", + "sebastian/environment": "^6.0", + "sebastian/lines-of-code": "^2.0", + "sebastian/version": "^4.0", "theseer/tokenizer": "^1.2.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-pcov": "*", @@ -5706,7 +5634,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.2-dev" + "dev-main": "10.0-dev" } }, "autoload": { @@ -5734,7 +5662,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.24" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.0.0" }, "funding": [ { @@ -5742,32 +5670,32 @@ "type": "github" } ], - "time": "2023-01-26T08:26:55+00:00" + "time": "2023-02-03T07:14:34+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.6", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/fd9329ab3368f59fe1fe808a189c51086bd4b6bd", + "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -5794,7 +5722,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.0.1" }, "funding": [ { @@ -5802,28 +5730,28 @@ "type": "github" } ], - "time": "2021-12-02T12:48:52+00:00" + "time": "2023-02-10T16:53:14+00:00" }, { "name": "phpunit/php-invoker", - "version": "3.1.1", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-pcntl": "*" @@ -5831,7 +5759,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -5857,7 +5785,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" }, "funding": [ { @@ -5865,32 +5793,32 @@ "type": "github" } ], - "time": "2020-09-28T05:58:55+00:00" + "time": "2023-02-03T06:56:09+00:00" }, { "name": "phpunit/php-text-template", - "version": "2.0.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/9f3d3709577a527025f55bcf0f7ab8052c8bb37d", + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -5916,7 +5844,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.0" }, "funding": [ { @@ -5924,32 +5852,32 @@ "type": "github" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2023-02-03T06:56:46+00:00" }, { "name": "phpunit/php-timer", - "version": "5.0.3", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -5975,7 +5903,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" }, "funding": [ { @@ -5983,24 +5911,23 @@ "type": "github" } ], - "time": "2020-10-26T13:16:10+00:00" + "time": "2023-02-03T06:57:52+00:00" }, { "name": "phpunit/phpunit", - "version": "9.6.3", + "version": "10.0.11", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555" + "reference": "d18a18b07e7a9ad52d994b1785f9e301fc84b616" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e7b1615e3e887d6c719121c6d4a44b0ab9645555", - "reference": "e7b1615e3e887d6c719121c6d4a44b0ab9645555", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d18a18b07e7a9ad52d994b1785f9e301fc84b616", + "reference": "d18a18b07e7a9ad52d994b1785f9e301fc84b616", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.3.1 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -6010,27 +5937,26 @@ "myclabs/deep-copy": "^1.10.1", "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", - "phpunit/php-file-iterator": "^3.0.5", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.3", - "phpunit/php-timer": "^5.0.2", - "sebastian/cli-parser": "^1.0.1", - "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.3", - "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.5", - "sebastian/global-state": "^5.0.1", - "sebastian/object-enumerator": "^4.0.3", - "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.2", - "sebastian/version": "^3.0.2" + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.0", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-invoker": "^4.0", + "phpunit/php-text-template": "^3.0", + "phpunit/php-timer": "^6.0", + "sebastian/cli-parser": "^2.0", + "sebastian/code-unit": "^2.0", + "sebastian/comparator": "^5.0", + "sebastian/diff": "^5.0", + "sebastian/environment": "^6.0", + "sebastian/exporter": "^5.0", + "sebastian/global-state": "^6.0", + "sebastian/object-enumerator": "^5.0", + "sebastian/recursion-context": "^5.0", + "sebastian/type": "^4.0", + "sebastian/version": "^4.0" }, "suggest": { - "ext-soap": "*", - "ext-xdebug": "*" + "ext-soap": "*" }, "bin": [ "phpunit" @@ -6038,7 +5964,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.6-dev" + "dev-main": "10.0-dev" } }, "autoload": { @@ -6069,7 +5995,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.3" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.0.11" }, "funding": [ { @@ -6085,7 +6011,7 @@ "type": "tidelift" } ], - "time": "2023-02-04T13:37:15+00:00" + "time": "2023-02-20T16:39:36+00:00" }, { "name": "pimple/pimple", @@ -6294,28 +6220,28 @@ }, { "name": "sebastian/cli-parser", - "version": "1.0.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/efdc130dbbbb8ef0b545a994fd811725c5282cae", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -6338,7 +6264,7 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.0" }, "funding": [ { @@ -6346,32 +6272,32 @@ "type": "github" } ], - "time": "2020-09-28T06:08:49+00:00" + "time": "2023-02-03T06:58:15+00:00" }, { "name": "sebastian/code-unit", - "version": "1.0.8", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -6394,7 +6320,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" }, "funding": [ { @@ -6402,32 +6328,32 @@ "type": "github" } ], - "time": "2020-10-26T13:08:54+00:00" + "time": "2023-02-03T06:58:43+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -6449,7 +6375,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" }, "funding": [ { @@ -6457,34 +6383,36 @@ "type": "github" } ], - "time": "2020-09-28T05:30:19+00:00" + "time": "2023-02-03T06:59:15+00:00" }, { "name": "sebastian/comparator", - "version": "4.0.8", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/72f01e6586e0caf6af81297897bd112eb7e9627c", + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -6523,7 +6451,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.0" }, "funding": [ { @@ -6531,33 +6459,33 @@ "type": "github" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2023-02-03T07:07:16+00:00" }, { "name": "sebastian/complexity", - "version": "2.0.2", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/e67d240970c9dc7ea7b2123a6d520e334dd61dc6", + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6", "shasum": "" }, "require": { - "nikic/php-parser": "^4.7", - "php": ">=7.3" + "nikic/php-parser": "^4.10", + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -6580,7 +6508,7 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" + "source": "https://github.com/sebastianbergmann/complexity/tree/3.0.0" }, "funding": [ { @@ -6588,33 +6516,33 @@ "type": "github" } ], - "time": "2020-10-26T15:52:27+00:00" + "time": "2023-02-03T06:59:47+00:00" }, { "name": "sebastian/diff", - "version": "4.0.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" + "reference": "70dd1b20bc198da394ad542e988381b44e64e39f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", - "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/70dd1b20bc198da394ad542e988381b44e64e39f", + "reference": "70dd1b20bc198da394ad542e988381b44e64e39f", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^10.0", "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -6646,7 +6574,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/diff/tree/5.0.0" }, "funding": [ { @@ -6654,27 +6582,27 @@ "type": "github" } ], - "time": "2020-10-26T13:10:38+00:00" + "time": "2023-02-03T07:00:31+00:00" }, { "name": "sebastian/environment", - "version": "5.1.5", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + "reference": "b6f3694c6386c7959915a0037652e0c40f6f69cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b6f3694c6386c7959915a0037652e0c40f6f69cc", + "reference": "b6f3694c6386c7959915a0037652e0c40f6f69cc", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "suggest": { "ext-posix": "*" @@ -6682,7 +6610,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -6701,7 +6629,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "homepage": "https://github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -6709,7 +6637,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" + "source": "https://github.com/sebastianbergmann/environment/tree/6.0.0" }, "funding": [ { @@ -6717,34 +6645,34 @@ "type": "github" } ], - "time": "2023-02-03T06:03:51+00:00" + "time": "2023-02-03T07:03:04+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.5", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -6786,7 +6714,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/exporter/tree/5.0.0" }, "funding": [ { @@ -6794,38 +6722,35 @@ "type": "github" } ], - "time": "2022-09-14T06:03:37+00:00" + "time": "2023-02-03T07:06:49+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.5", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" + "reference": "aab257c712de87b90194febd52e4d184551c2d44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", - "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/aab257c712de87b90194febd52e4d184551c2d44", + "reference": "aab257c712de87b90194febd52e4d184551c2d44", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -6850,7 +6775,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.0" }, "funding": [ { @@ -6858,33 +6783,33 @@ "type": "github" } ], - "time": "2022-02-14T08:28:10+00:00" + "time": "2023-02-03T07:07:38+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.3", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/17c4d940ecafb3d15d2cf916f4108f664e28b130", + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130", "shasum": "" }, "require": { - "nikic/php-parser": "^4.6", - "php": ">=7.3" + "nikic/php-parser": "^4.10", + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -6907,7 +6832,7 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.0" }, "funding": [ { @@ -6915,34 +6840,34 @@ "type": "github" } ], - "time": "2020-11-28T06:42:11+00:00" + "time": "2023-02-03T07:08:02+00:00" }, { "name": "sebastian/object-enumerator", - "version": "4.0.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -6964,7 +6889,7 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" }, "funding": [ { @@ -6972,32 +6897,32 @@ "type": "github" } ], - "time": "2020-10-26T13:12:34+00:00" + "time": "2023-02-03T07:08:32+00:00" }, { "name": "sebastian/object-reflector", - "version": "2.0.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -7019,7 +6944,7 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" }, "funding": [ { @@ -7027,32 +6952,32 @@ "type": "github" } ], - "time": "2020-10-26T13:14:26+00:00" + "time": "2023-02-03T07:06:18+00:00" }, { "name": "sebastian/recursion-context", - "version": "4.0.5", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -7082,7 +7007,7 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" }, "funding": [ { @@ -7090,87 +7015,32 @@ "type": "github" } ], - "time": "2023-02-03T06:07:39+00:00" - }, - { - "name": "sebastian/resource-operations", - "version": "3.0.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", - "shasum": "" - }, - "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", - "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2020-09-28T06:45:17+00:00" + "time": "2023-02-03T07:05:40+00:00" }, { "name": "sebastian/type", - "version": "3.2.1", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -7193,7 +7063,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" }, "funding": [ { @@ -7201,29 +7071,29 @@ "type": "github" } ], - "time": "2023-02-03T06:13:03+00:00" + "time": "2023-02-03T07:10:45+00:00" }, { "name": "sebastian/version", - "version": "3.0.2", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -7246,7 +7116,7 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" }, "funding": [ { @@ -7254,20 +7124,20 @@ "type": "github" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2023-02-07T11:34:05+00:00" }, { "name": "spatie/backtrace", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/spatie/backtrace.git", - "reference": "4ee7d41aa5268107906ea8a4d9ceccde136dbd5b" + "reference": "7b34fee6c1ad45f8ee0498d17cd8ea9a076402c1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/backtrace/zipball/4ee7d41aa5268107906ea8a4d9ceccde136dbd5b", - "reference": "4ee7d41aa5268107906ea8a4d9ceccde136dbd5b", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/7b34fee6c1ad45f8ee0498d17cd8ea9a076402c1", + "reference": "7b34fee6c1ad45f8ee0498d17cd8ea9a076402c1", "shasum": "" }, "require": { @@ -7303,8 +7173,7 @@ "spatie" ], "support": { - "issues": "https://github.com/spatie/backtrace/issues", - "source": "https://github.com/spatie/backtrace/tree/1.2.1" + "source": "https://github.com/spatie/backtrace/tree/1.2.2" }, "funding": [ { @@ -7316,7 +7185,7 @@ "type": "other" } ], - "time": "2021-11-09T10:57:15+00:00" + "time": "2023-02-21T08:29:12+00:00" }, { "name": "spatie/laravel-ray", @@ -7800,16 +7669,16 @@ }, { "name": "zbateson/mail-mime-parser", - "version": "2.3.0", + "version": "2.4.0", "source": { "type": "git", "url": "https://github.com/zbateson/mail-mime-parser.git", - "reference": "d59e0c5eeb1442fca94bcb3b9d3c6be66318a500" + "reference": "20b3e48eb799537683780bc8782fbbe9bc25934a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/d59e0c5eeb1442fca94bcb3b9d3c6be66318a500", - "reference": "d59e0c5eeb1442fca94bcb3b9d3c6be66318a500", + "url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/20b3e48eb799537683780bc8782fbbe9bc25934a", + "reference": "20b3e48eb799537683780bc8782fbbe9bc25934a", "shasum": "" }, "require": { @@ -7871,7 +7740,7 @@ "type": "github" } ], - "time": "2023-01-30T19:04:55+00:00" + "time": "2023-02-14T22:58:03+00:00" }, { "name": "zbateson/mb-wrapper", @@ -8015,5 +7884,5 @@ "php": "^8.1" }, "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.2.0" } diff --git a/src/Commands/ShowModelCommand.php b/src/Commands/ShowModelCommand.php index c1e9bbe..95db488 100644 --- a/src/Commands/ShowModelCommand.php +++ b/src/Commands/ShowModelCommand.php @@ -2,7 +2,7 @@ namespace FumeApp\ModelTyper\Commands; -use Illuminate\Foundation\Console\ShowModelCommand as BaseCommand; +use Illuminate\Database\Console\ShowModelCommand as BaseCommand; /** * A wrapper command for Laravel default model:show to add customizaton for model generation.