mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2024-11-30 04:29:10 +01:00
24 lines
555 B
Gherkin
24 lines
555 B
Gherkin
@symfony-common
|
|
Feature: EventDispatcherInterface
|
|
|
|
Background:
|
|
Given I have Symfony plugin enabled
|
|
|
|
Scenario: EventDispatcherInterface::dispatch() is generic
|
|
Given I have the following code
|
|
"""
|
|
<?php
|
|
|
|
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
|
|
|
|
class Foo
|
|
{
|
|
public function test(EventDispatcherInterface $dispatcher, Foo $object): Foo
|
|
{
|
|
return $dispatcher->dispatch($object, 'foo');
|
|
}
|
|
}
|
|
"""
|
|
When I run Psalm
|
|
Then I see no errors
|