[Form] fix return type on FormDataCollector
This commit is contained in:
parent
7fb7f59385
commit
de6b9efddd
|
@ -14,6 +14,7 @@ namespace Symfony\Component\Form\Extension\DataCollector;
|
||||||
use Symfony\Component\Form\FormInterface;
|
use Symfony\Component\Form\FormInterface;
|
||||||
use Symfony\Component\Form\FormView;
|
use Symfony\Component\Form\FormView;
|
||||||
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
|
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
|
||||||
|
use Symfony\Component\VarDumper\Cloner\Data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Collects and structures information about forms.
|
* Collects and structures information about forms.
|
||||||
|
@ -78,7 +79,7 @@ interface FormDataCollectorInterface extends DataCollectorInterface
|
||||||
/**
|
/**
|
||||||
* Returns all collected data.
|
* Returns all collected data.
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array|Data
|
||||||
*/
|
*/
|
||||||
public function getData();
|
public function getData();
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,9 @@ use Symfony\Component\VarDumper\Cloner\VarCloner;
|
||||||
*/
|
*/
|
||||||
abstract class DataCollector implements DataCollectorInterface, \Serializable
|
abstract class DataCollector implements DataCollectorInterface, \Serializable
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var array|Data
|
||||||
|
*/
|
||||||
protected $data = [];
|
protected $data = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in New Issue