I'm running the codesniffer with the EcgM2 standard on my custom extension and I'm getting the warning
The method parameter
$context
is never used
for the InstallSchema.php
file.
How can I make this warning go away?
My method looks like this (notice the SuppressWarnings
at the top of it):
/**
* {@inheritdoc}
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
//my install script here that does not use the parameter $context
}