Skip to content

Commit 94da160

Browse files
Enable "native_constant_invocation" CS rule
1 parent a0f6858 commit 94da160

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ContainerAwareEventDispatcher.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(ContainerInterface $container)
4747
$class = get_parent_class($class);
4848
}
4949
if (__CLASS__ !== $class) {
50-
@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);
50+
@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);
5151
}
5252
}
5353

@@ -65,7 +65,7 @@ public function __construct(ContainerInterface $container)
6565
*/
6666
public function addListenerService($eventName, $callback, $priority = 0)
6767
{
68-
@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);
68+
@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);
6969

7070
if (!\is_array($callback) || 2 !== \count($callback)) {
7171
throw new \InvalidArgumentException('Expected an ["service", "method"] argument.');
@@ -147,7 +147,7 @@ public function getListenerPriority($eventName, $listener)
147147
*/
148148
public function addSubscriberService($serviceId, $class)
149149
{
150-
@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);
150+
@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);
151151

152152
foreach ($class::getSubscribedEvents() as $eventName => $params) {
153153
if (\is_string($params)) {
@@ -164,7 +164,7 @@ public function addSubscriberService($serviceId, $class)
164164

165165
public function getContainer()
166166
{
167-
@trigger_error('The '.__METHOD__.'() method is deprecated since Symfony 3.3 as its class will be removed in 4.0. Inject the container or the services you need in your listeners/subscribers instead.', E_USER_DEPRECATED);
167+
@trigger_error('The '.__METHOD__.'() method is deprecated since Symfony 3.3 as its class will be removed in 4.0. Inject the container or the services you need in your listeners/subscribers instead.', \E_USER_DEPRECATED);
168168

169169
return $this->container;
170170
}

0 commit comments

Comments
 (0)