Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / finder / Expression / Regex.php
index 2fd2b96edb1421438d20e5e166d00343fe13cdae..2f1ab3db03fc40abdc3d757e057781673fb8b91c 100644 (file)
@@ -11,7 +11,7 @@
 
 namespace Symfony\Component\Finder\Expression;
 
-@trigger_error('The '.__NAMESPACE__.'\Regex class is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
+@trigger_error('The '.__NAMESPACE__.'\Regex class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
 
 /**
  * @author Jean-François Simon <contact@jfsimon.fr>
@@ -30,7 +30,7 @@ class Regex implements ValueInterface
     private $pattern;
 
     /**
-     * @var array
+     * @var string
      */
     private $options;
 
@@ -69,8 +69,8 @@ class Regex implements ValueInterface
 
             if (
                 ($start === $end && !preg_match('/[*?[:alnum:] \\\\]/', $start))
-                || ($start === '{' && $end === '}')
-                || ($start === '(' && $end === ')')
+                || ('{' === $start && '}' === $end)
+                || ('(' === $start && ')' === $end)
             ) {
                 return new self(substr($m[1], 1, -1), $m[2], $end);
             }
@@ -279,8 +279,6 @@ class Regex implements ValueInterface
     }
 
     /**
-     * @param array $replacement
-     *
      * @return $this
      */
     public function replaceJokers($replacement)