What happened?
When installing on a new filament v5 with laravel v13 on composer's postAutoloadDump it throws an error:
PHP Fatal error: Declaration of SolutionForest\FilamentTree\Commands\MakeTreePageCommand::configure() must be compatible with Symfony\Component\Console\Command\Command::configure(): void in /app/vendor/solution-forest/filament-tree/src/Commands/MakeTreePageCommand.php on line 76
Symfony\Component\ErrorHandler\Error\FatalError
Declaration of SolutionForest\FilamentTree\Commands\MakeTreePageCommand::configure() must be compatible with Symfony\Component\Console\Command\Command::configure(): void
at vendor/solution-forest/filament-tree/src/Commands/MakeTreePageCommand.php:76
72▕ protected string $pagesDirectory;
73▕
74▕ public static bool $shouldCheckModelsForSoftDeletes = true;
75▕
➜ 76▕ protected function configure()
77▕ {
78▕ $this->addArgument(
79▕ name: 'name',
80▕ mode: InputArgument::OPTIONAL,
Whoops\Exception\ErrorException
Declaration of SolutionForest\FilamentTree\Commands\MakeTreePageCommand::configure() must be compatible with Symfony\Component\Console\Command\Command::configure(): void
at vendor/solution-forest/filament-tree/src/Commands/MakeTreePageCommand.php:76
72▕ protected string $pagesDirectory;
73▕
74▕ public static bool $shouldCheckModelsForSoftDeletes = true;
75▕
➜ 76▕ protected function configure()
77▕ {
78▕ $this->addArgument(
79▕ name: 'name',
80▕ mode: InputArgument::OPTIONAL,
+1 vendor frames
2 [internal]:0
Whoops\Run::handleShutdown()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
How to reproduce the bug
I'm using lando , so I make the following call for installing:
lando composer require solution-forest/filament-tree ^4.0
Package Version
4.0.0
PHP Version
8.4.18
Laravel Version
13.1.1
Which operating systems does with happen with?
macOS
Notes
Looks like it affects 2 files: MakeTreePageCommand and MakeTreeWidgetCommand
There's a missing required : void return type declaration to the configure() methods, which is now mandatory in Symfony's Command class.
What happened?
When installing on a new filament v5 with laravel v13 on composer's postAutoloadDump it throws an error:
How to reproduce the bug
I'm using lando , so I make the following call for installing:
Package Version
4.0.0
PHP Version
8.4.18
Laravel Version
13.1.1
Which operating systems does with happen with?
macOS
Notes
Looks like it affects 2 files: MakeTreePageCommand and MakeTreeWidgetCommand
There's a missing required : void return type declaration to the configure() methods, which is now mandatory in Symfony's Command class.