uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
.
/
craftcms
/
cms
/
src
/
base
/
.
/
ClonefixTrait.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\base; use craft\db\Query; use yii\base\Component as YiiComponent; /** * Trait ClonefixTrait. * * This provides an improved `__clone()` method over [[\yii\base\Component::__clone()]], * which rushes a fix for https://github.com/yiisoft/yii2/issues/16247. * * @since 3.0.13 * @mixin YiiComponent */ trait ClonefixTrait { public function __clone() { /** @var Model|Query $this */ $behaviors = $this->getBehaviors(); parent::__clone(); foreach ($behaviors as $name => $behavior) { $this->attachBehavior($name, clone $behavior); } } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/./craftcms/cms/src/base/./ClonefixTrait.php