mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-21 06:33:43 +01:00
merge from yiisoft/yii2
This commit is contained in:
@@ -49,4 +49,16 @@ namespace yii\helpers;
|
||||
*/
|
||||
class UnsetArrayValue
|
||||
{
|
||||
/**
|
||||
* Restores class state after using `var_export()`.
|
||||
*
|
||||
* @param array $state
|
||||
* @return UnsetArrayValue
|
||||
* @see var_export()
|
||||
* @since 2.0.16
|
||||
*/
|
||||
public static function __set_state($state)
|
||||
{
|
||||
return new self();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user