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 join() ones for BelongsTo and HasOne relations.
*
* @param string|string[] $relationMethod
* @param callable[]|null[] $constraints
* @return $this
* @see \Mpyw\EloquentHasByJoin\HasByJoinMacro
*/
public function hasByJoin($relationMethod, ?callable ...$constraints)
$relationMethod
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function hasByJoin(/** @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.
$constraints
public function hasByJoin($relationMethod, /** @scrutinizer ignore-unused */ ?callable ...$constraints)
return $this;
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.