for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\GraphQL\Controllers\Fixtures;
class TestObject
{
/**
* @var string
*/
private $test;
* @var bool
private $testBool;
public function __construct(string $test, bool $testBool = false)
$this->test = $test;
$this->testBool = $testBool;
}
* @return string
public function getTest(): string
return $this->test;
* @return bool
public function isTestBool(): bool
return $this->testBool;
* @return ?string
public function testRight()
return "foo";
public function getSibling(self $foo): self
$foo
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function getSibling(/** @scrutinizer ignore-unused */ self $foo): self
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new self('foo');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.