mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
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:
parent
c5aef1f78c
commit
5ed82f8c0f
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user