Skip to content

Commit

Permalink
Merge 53bc1bc into c0ab8d2
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelJurasek committed Sep 9, 2019
2 parents c0ab8d2 + 53bc1bc commit 9f4f069
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ parameters:
paths:
- src
- tests/KdybyTests

ignoreErrors:
-
message: '~Parameter \#1 \$eventName \(string\) of method Kdyby\\Events\\SymfonyDispatcher::dispatch\(\) should be compatible with parameter \$event \(object\) of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\)~'
path: src/Events/SymfonyDispatcher.php
-
message: '~Parameter \#1 \$classname of function class_exists expects string, Nette\\DI\\Definitions\\Reference\|string given.~'
path: src/Events/DI/EventsExtension.php
3 changes: 3 additions & 0 deletions src/Events/SymfonyDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public function __construct(EventManager $eventManager)
$this->evm = $eventManager;
}

/**
* @param string $eventName
*/
public function dispatch($eventName, SymfonyEvent $event = NULL)
{
$this->evm->dispatchEvent($eventName, new EventArgsList([$event]));
Expand Down

0 comments on commit 9f4f069

Please sign in to comment.