Skip to content

Commit 3de2cac

Browse files
Cleanup more @return annotations
1 parent d63cd06 commit 3de2cac

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

EventDispatcherInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function removeSubscriber(EventSubscriberInterface $subscriber);
4848
/**
4949
* Gets the listeners of a specific event or all listeners sorted by descending priority.
5050
*
51-
* @return array The event listeners for the specified event, or all event listeners by event name
51+
* @return array<callable[]|callable>
5252
*/
5353
public function getListeners(string $eventName = null);
5454

@@ -57,14 +57,14 @@ public function getListeners(string $eventName = null);
5757
*
5858
* Returns null if the event or the listener does not exist.
5959
*
60-
* @return int|null The event listener priority
60+
* @return int|null
6161
*/
6262
public function getListenerPriority(string $eventName, callable $listener);
6363

6464
/**
6565
* Checks whether an event has any registered listeners.
6666
*
67-
* @return bool true if the specified event has any listeners, false otherwise
67+
* @return bool
6868
*/
6969
public function hasListeners(string $eventName = null);
7070
}

EventSubscriberInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface EventSubscriberInterface
4343
* The code must not depend on runtime state as it will only be called at compile time.
4444
* All logic depending on runtime state must be put into the individual methods handling the events.
4545
*
46-
* @return array<string, mixed> The event names to listen to
46+
* @return array<string, (string|list<string,int>|list<list<string,int>>)>
4747
*/
4848
public static function getSubscribedEvents();
4949
}

GenericEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($subject = null, array $arguments = [])
4040
/**
4141
* Getter for subject property.
4242
*
43-
* @return mixed The observer subject
43+
* @return mixed
4444
*/
4545
public function getSubject()
4646
{
@@ -50,7 +50,7 @@ public function getSubject()
5050
/**
5151
* Get argument by key.
5252
*
53-
* @return mixed Contents of array key
53+
* @return mixed
5454
*
5555
* @throws \InvalidArgumentException if key is not found
5656
*/

0 commit comments

Comments
 (0)