diff vendor/symfony/dependency-injection/Exception/ServiceNotFoundException.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
line wrap: on
line diff
--- a/vendor/symfony/dependency-injection/Exception/ServiceNotFoundException.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/dependency-injection/Exception/ServiceNotFoundException.php	Thu Feb 28 13:21:36 2019 +0000
@@ -24,7 +24,7 @@
     private $sourceId;
     private $alternatives;
 
-    public function __construct($id, $sourceId = null, \Exception $previous = null, array $alternatives = array(), $msg = null)
+    public function __construct($id, $sourceId = null, \Exception $previous = null, array $alternatives = [], $msg = null)
     {
         if (null !== $msg) {
             // no-op
@@ -35,7 +35,7 @@
         }
 
         if ($alternatives) {
-            if (1 == count($alternatives)) {
+            if (1 == \count($alternatives)) {
                 $msg .= ' Did you mean this: "';
             } else {
                 $msg .= ' Did you mean one of these: "';