for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Illuminate\Database\Eloquent
{
if (false) {
class Builder
/**
* Convert has() and whereHas() constraints to non-dependent subqueries.
*
* @param string|string[] $relationMethod
* @param callable[]|null[] $constraints
* @return $this
* @see \Mpyw\EloquentHasByNonDependentSubquery\HasByNonDependentSubqueryMacro
*/
public function hasByNonDependentSubquery($relationMethod, ?callable ...$constraints)
$constraints
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function hasByNonDependentSubquery($relationMethod, /** @scrutinizer ignore-unused */ ?callable ...$constraints)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$relationMethod
public function hasByNonDependentSubquery(/** @scrutinizer ignore-unused */ $relationMethod, ?callable ...$constraints)
return $this;
}
public function orHasByNonDependentSubquery($relationMethod, ?callable ...$constraints)
public function orHasByNonDependentSubquery(/** @scrutinizer ignore-unused */ $relationMethod, ?callable ...$constraints)
public function orHasByNonDependentSubquery($relationMethod, /** @scrutinizer ignore-unused */ ?callable ...$constraints)
public function doesntHaveByNonDependentSubquery($relationMethod, ?callable ...$constraints)
public function doesntHaveByNonDependentSubquery($relationMethod, /** @scrutinizer ignore-unused */ ?callable ...$constraints)
public function doesntHaveByNonDependentSubquery(/** @scrutinizer ignore-unused */ $relationMethod, ?callable ...$constraints)
public function orDoesntHaveByNonDependentSubquery($relationMethod, ?callable ...$constraints)
public function orDoesntHaveByNonDependentSubquery($relationMethod, /** @scrutinizer ignore-unused */ ?callable ...$constraints)
public function orDoesntHaveByNonDependentSubquery(/** @scrutinizer ignore-unused */ $relationMethod, ?callable ...$constraints)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.