Skip to content

Commit ed5be16

Browse files
committed
fixed short array CS in comments
1 parent 98f4d5b commit ed5be16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ContainerAwareEventDispatcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function addListenerService($eventName, $callback, $priority = 0)
6767
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0. Use EventDispatcher with closure factories instead.', __CLASS__), E_USER_DEPRECATED);
6868

6969
if (!\is_array($callback) || 2 !== \count($callback)) {
70-
throw new \InvalidArgumentException('Expected an array("service", "method") argument');
70+
throw new \InvalidArgumentException('Expected an ["service", "method"] argument');
7171
}
7272

7373
$this->listenerIds[$eventName][] = [$callback[0], $callback[1], $priority];

EventSubscriberInterface.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ interface EventSubscriberInterface
3636
*
3737
* For instance:
3838
*
39-
* * array('eventName' => 'methodName')
40-
* * array('eventName' => array('methodName', $priority))
41-
* * array('eventName' => array(array('methodName1', $priority), array('methodName2')))
39+
* * ['eventName' => 'methodName']
40+
* * ['eventName' => ['methodName', $priority]]
41+
* * ['eventName' => [['methodName1', $priority], ['methodName2']]]
4242
*
4343
* @return array The event names to listen to
4444
*/

0 commit comments

Comments
 (0)