Skip to content

Commit

Permalink
fix: return value for save function.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jan 31, 2024
1 parent 7f3668c commit cdf4500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Setting/Mapper/SettingConfigMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function updateByKey(string $key, mixed $value = null): bool
/**
* 保存配置.
*/
public function save(array $data): int
public function save(array $data): mixed

Check failure on line 78 in app/Setting/Mapper/SettingConfigMapper.php

View workflow job for this annotation

GitHub Actions / Test PHP 8.2 on swoole

Return type mixed of method App\Setting\Mapper\SettingConfigMapper::save() is not covariant with return type int of method Mine\Abstracts\AbstractMapper::save().

Check failure on line 78 in app/Setting/Mapper/SettingConfigMapper.php

View workflow job for this annotation

GitHub Actions / Test PHP 8.3 on swoole

Return type mixed of method App\Setting\Mapper\SettingConfigMapper::save() is not covariant with return type int of method Mine\Abstracts\AbstractMapper::save().
{
$this->filterExecuteAttributes($data);
$model = $this->model::create($data);
Expand Down

0 comments on commit cdf4500

Please sign in to comment.