The error
Parse error: syntax error, unexpected ’)’, expecting ’&’ or variable (T_VARIABLE) in
is by far te most common thing I’m seeing during Magento 2 development. Its root cause?
public function __construct(
MagentoFrameworkAppRequestInterface $requestInterface,
)
I’m injecting a dependency by copy/pasting the type hint and parameter from somewhere else and leaving the trailing ,
public function __construct(
MagentoFrameworkAppRequestInterface $requestInterface
)