for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by enea dhack - 13/06/2020 13:01.
*/
namespace Vaened\Searcher;
trait WithIndexes
{
abstract protected function getIndexProvider(): Indexable;
public function search(string $index, ?string $q): self
if ($q != null) {
$q
null|string
null
!==
$this->apply($this->getIndexProvider()->getConstraint($index, $q));
apply()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
apply($this->getIndexProvider()->getConstraint($index, $q));
}
return $this;