Nova 4.26.0 introduce a new parameter on withOrdering method in LensRequest class. As MockLensRequest extend it, withOrdering must have it.
Error output:
In MockLensRequest.php line 27:
Declaration of JoshGaber\NovaUnit\Lenses\MockLensRequest::withOrdering($que
ry) must be compatible with Laravel\Nova\Http\Requests\LensRequest::withOrd
ering($query, $defaultCallback = null)
Nova 4.26.0 withOrdering definition: public function withOrdering($query, $defaultCallback = null)
Easy fix in \JoshGaber\NovaUnit\Lenses\MockLensRequest
// add second parameter $defaultCallback = null
public function withOrdering($query, $defaultCallback = null)
{
$this->withOrdering = true;
return $query;
}
Hello,
Nova 4.26.0 introduce a new parameter on
withOrdering
method in LensRequest class. As MockLensRequest extend it,withOrdering
must have it.Error output:
Nova 4.26.0 withOrdering definition:
public function withOrdering($query, $defaultCallback = null)
Easy fix in
\JoshGaber\NovaUnit\Lenses\MockLensRequest
Hope you'll fix it Thanks!