Should the return type not be boolean|string|null?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
24
*/
25
public function addProtectionWarningToOutput(OutputInterface $output)
26
{
27
$checker = new SuperSakeChecker();
28
if((bool)$checker->superSakeIsNotProtected()) {
29
$output->writeln("\n");
30
$output->writeln('<error>The supersake file is accessible by browsers</error>');
31
$output->writeln('<error>Please lock down the file by either : </error>');
32
$output->writeln('<comment>Adding this to your .htaccess file</comment>');
33
$output->writeln($checker->htaccessContent());
34
$output->writeln('<comment>Or add this to the <fileExtensions allowUnlisted="true"> section of your web.config file if you are running on iis</comment>');
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.