mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-14 18:31:22 +08:00
Fix #20608: Fix @return annotations for yii\rest\Serializer methods
This commit is contained in:
@@ -184,7 +184,7 @@ class Serializer extends Component
|
||||
/**
|
||||
* Serializes a data provider.
|
||||
* @param DataProviderInterface $dataProvider
|
||||
* @return array the array representation of the data provider.
|
||||
* @return array|null the array representation of the data provider.
|
||||
*/
|
||||
protected function serializeDataProvider($dataProvider)
|
||||
{
|
||||
@@ -256,7 +256,7 @@ class Serializer extends Component
|
||||
/**
|
||||
* Serializes a model object.
|
||||
* @param Arrayable $model
|
||||
* @return array the array representation of the model
|
||||
* @return array|null the array representation of the model
|
||||
*/
|
||||
protected function serializeModel($model)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user