$this of type Nopolabs\Test\MockWithExpectationsTrait is incompatible with the type PHPUnit\Framework\TestCase expected by parameter $testCase of Nopolabs\Test\MockWithExpectations::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
44
$this->mockWithExpectations = new MockWithExpectations(/** @scrutinizer ignore-type */ $this);