Removed the redundant parameters of method HasEvents::fireModelEvent(). (#4905)

* Fixed typo in `file.php`

Co-authored-by: 李铭昕 <715557344@qq.com>
This commit is contained in:
她和她的猫 2022-07-07 09:16:20 +08:00 committed by GitHub
parent c5aef1f78c
commit 5ed82f8c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -68,6 +68,7 @@ composer analyse
- [#4875](https://github.com/hyperf/hyperf/pull/4875) Use the original style when regenerating models.
- [#4880](https://github.com/hyperf/hyperf/pull/4880) Support `ignoreAnnotations` for `Annotation Reader`.
- [#4888](https://github.com/hyperf/hyperf/pull/4888) Removed useless `Hyperf\Di\ClassLoader::$proxies`, because merge it into `Composer\Autoload\ClassLoader::$classMap`.
- [#4905](https://github.com/hyperf/hyperf/pull/4905) Removed the redundant parameters of method `Hyperf\Database\Model\Concerns\HasEvents::fireModelEvent()`.
## Changed

View File

@ -492,7 +492,7 @@ trait HasRelationships
$this->{$relation}()->touch();
if ($this->{$relation} instanceof self) {
$this->{$relation}->fireModelEvent('saved', false);
$this->{$relation}->fireModelEvent('saved');
$this->{$relation}->touchOwners();
} elseif ($this->{$relation} instanceof Collection) {

View File

@ -357,7 +357,7 @@ abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializab
$model->setConnection($connection ?: $this->getConnectionName());
$model->fireModelEvent('retrieved', false);
$model->fireModelEvent('retrieved');
return $model;
}

View File

@ -75,7 +75,7 @@ return [
'accessKey' => env('QINIU_ACCESS_KEY'),
'secretKey' => env('QINIU_SECRET_KEY'),
'bucket' => env('QINIU_BUCKET'),
'domain' => env('QINBIU_DOMAIN'),
'domain' => env('QINIU_DOMAIN'),
],
'cos' => [
'driver' => \Hyperf\Filesystem\Adapter\CosAdapterFactory::class,