The method actingAs() does not seem to exist on object<Gabievi\Promocode...edundantPromocodesTest>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
It seems like \Gabievi\Promocodes\Models\Promocode::all() targeting Illuminate\Database\Eloquent\Model::all() can also be of type array<integer,object<Ill...base\Eloquent\Builder>>; however, PHPUnit\Framework\Assert::assertCount() does only seem to accept object<Countable>|object...nit\Framework\iterable>, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
It seems like \Gabievi\Promocodes\Models\Promocode::all() targeting Illuminate\Database\Eloquent\Model::all() can also be of type array<integer,object<Ill...base\Eloquent\Builder>>; however, PHPUnit\Framework\Assert::assertCount() does only seem to accept object<Countable>|object...nit\Framework\iterable>, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.