dcat-admin
dcat-admin copied to clipboard
执行代码生成出现错误
- Laravel Version: 9.0
- PHP Version: 8.1
- Dcat Admin Version: 2.2.0.beta
Description:
laravel.test_1 | [Tue Feb 22 02:38:24 2022] PHP Fatal error: Declaration of Dcat\Admin\Scaffold\MigrationCreator::populateStub($name, $stub, $table) must be compatible with Illuminate\Database\Migrations\MigrationCreator::populateStub($stub, $table) in /var/www/html/vendor/dcat/laravel-admin/src/Scaffold/MigrationCreator.php on line 61
laravel.test_1 | [Tue Feb 22 02:38:24 2022] PHP Fatal error: Declaration of Dcat\Admin\Scaffold\MigrationCreator::populateStub($name, $stub, $table) must be compatible with Illuminate\Database\Migrations\MigrationCreator::populateStub($stub, $table) in /var/www/html/vendor/dcat/laravel-admin/src/Scaffold/MigrationCreator.php on line 61
Steps To Reproduce:
我也出现了
[Mon Feb 28 16:01:56 2022] 127.0.0.1:64935 Accepted
[Mon Feb 28 16:01:57 2022] PHP Fatal error: Declaration of Dcat\Admin\Scaffold\MigrationCreator::populateStub($name, $stub, $table) must be compatible with Illuminate\Database\Migrations\MigrationCreator::populateStub($stub, $table) in /Users/xcy/src/try_dcat_admin/vendor/dcat/laravel-admin/src/Scaffold/MigrationCreator.php on line 61
[Mon Feb 28 16:01:57 2022] 127.0.0.1:64935 Closing
代码生成器设置如下:
同样出现了问题


会不会是继承父类的Illuminate\Database\Migrations\MigrationCreator出现的问题。
对laravel9的适配还有问题
https://github.com/jqhph/dcat-admin/blame/56d62aa85f2451bdb7587d23b3710bf68baa610b/src/Scaffold/MigrationCreator.php github已经提交过修改了,可以先手动修复一下试试
终于看到了Success
测试了还是报错啊
终于看到了Success
按照提交记录里的修改后,成功了。但是composer包没更新
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.