mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	proper handling of JsonSerializable.
This commit is contained in:
		@ -82,7 +82,7 @@ class BaseJson
 | 
			
		||||
	protected static function processData($data, &$expressions, $expPrefix)
 | 
			
		||||
	{
 | 
			
		||||
		if ($data instanceof \JsonSerializable) {
 | 
			
		||||
			return $data;
 | 
			
		||||
			$data = $data->jsonSerialize();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (is_object($data)) {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user