please help me to understand this error:
Deprecated Functionality: Optional parameter $data declared before required parameter $registry is implicitly treated as a required parameter in Autocomplete.php on line 31
Here is this snipet of code:
public function __construct(Context $context, array $data = [], Registry $registry)
I tried to solve it like this:
public function __construct(Context $context, array $data = [], Registry $registry = [])
but got error:
Fatal error: Cannot use array as default value for parameter $registry