-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Hello!
When i prophesyze a class with interfaces it leads to an error. Executing this without the extension yields the expected result.
Using the current versions:
"jangregor/phpstan-prophecy": "^2.0",
"phpstan/phpstan": "^2.1.3",
<?php
namespace MyBundle\Tests;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
interface A
{
}
class InterfaceTest extends TestCase
{
use ProphecyTrait;
protected function setUp(): void
{
$this->prophecy = $this->prophesize();
$this->prophecy->willImplement(A::class);
}
} Error
-- --------------------------------------------------------------------------------------------------------------------------------------------------------------------
Internal error: assert($calledOnType instanceof Type\Generic\GenericObjectType) while analysing file
/Users/aleinweber/Projekt/src/Bundle/MyBundle/Tests/InterfaceTest.php
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels