8000 minor #29743 [EventDispatcher] Fixed phpdoc on interface (samnela) · symfony/symfony@99c9221 · GitHub
[go: up one dir, main page]

Skip to content

Commit 99c9221

Browse files
committed
minor #29743 [EventDispatcher] Fixed phpdoc on interface (samnela)
This PR was merged into the 3.4 branch. Discussion ---------- [EventDispatcher] Fixed phpdoc on interface | Q | A | ------------- | --- | Branch? | 3.4 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | n/a <!-- required for new features --> <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- 94bd28e [EventDispatcher] Fixed phpdoc on interface
2 parents 7c51847 + 94bd28e commit 99c9221

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ interface EventDispatcherInterface
2323
/**
2424
* Dispatches an event to all registered listeners.
2525
*
26-
* @param string $eventName The name of the event to dispatch. The name of
27-
* the event is the name of the method that is
28-
* invoked on listeners.
29-
* @param Event $event The event to pass to the event handlers/listeners
30-
* If not supplied, an empty Event instance is created
26+
* @param string $eventName The name of the event to dispatch. The name of
27+
* the event is the name of the method that is
28+
* invoked on listeners.
29+
* @param Event|null $event The event to pass to the event handlers/listeners
30+
* If not supplied, an empty Event instance is created
3131
*
3232
* @return Event
3333
*/
@@ -64,7 +64,7 @@ public function removeSubscriber(EventSubscriberInterface $subscriber);
6464
/**
6565
* Gets the listeners of a specific event or all listeners sorted by descending priority.
6666
*
67-
* @param string $eventName The name of the event
67+
* @param string|null $eventName The name of the event
6868
*
6969
* @return array The event listeners for the specified event, or all event listeners by event name
7070
*/
@@ -85,7 +85,7 @@ public function getListenerPriority($eventName, $listener);
8585
/**
8686
* Checks whether an event has any registered listeners.
8787
*
88-
* @param string $eventName The name of the event
88+
* @param string|null $eventName The name of the event
8989
*
9090
* @return bool true if the specified event has any listeners, false otherwise
9191
*/

0 commit comments

Comments
 (0)
0