fix:修复类型错误

This commit is contained in:
Jack Jaguar 2024-01-08 10:20:20 +08:00
parent 2e81eb42d3
commit 07eaa5c274
14 changed files with 16 additions and 15 deletions

View File

@ -21,7 +21,7 @@ class ApiCategorySeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
$data = array (
0 =>

View File

@ -21,7 +21,7 @@ class ApiTesterSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
$data = array (
0 =>

View File

@ -21,7 +21,7 @@ class ApiTesterUserenvSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
$data = array (
0 =>

View File

@ -20,7 +20,8 @@ class ApimanagerMenusSeed extends Seeder {
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run() {
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -21,7 +21,7 @@ class CmsMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -21,7 +21,7 @@ class DomainMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -21,7 +21,7 @@ class MonitorMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -12,7 +12,7 @@ class PermissionsMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -20,7 +20,7 @@ class RolesSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catchAdmin\permissions\model\Roles::create([
'role_name' => '超级管理员',

View File

@ -12,9 +12,9 @@ class UsersSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
return \catchAdmin\permissions\model\Users::create([
\catchAdmin\permissions\model\Users::create([
'username' => 'admin',
'password' => 'catchadmin',
'email' => 'catch@admin.com',

View File

@ -21,7 +21,7 @@ class SmsMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -12,7 +12,7 @@ class ConfigSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
$data = [
[

View File

@ -21,7 +21,7 @@ class SystemMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}

View File

@ -21,7 +21,7 @@ class WechatMenusSeed extends Seeder
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
public function run(): void
{
\catcher\Utils::importTreeData($this->getPermissions(), 'permissions', 'parent_id');
}