Fix #20608: Fix @return annotations for yii\rest\Serializer methods

This commit is contained in:
Maksim Spirkov
2025-10-14 19:30:50 +03:00
committed by GitHub
parent 33bcf7fffa
commit e6bc2ca0ff
2 changed files with 3 additions and 2 deletions

View File

@@ -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)
{