Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / var-dumper / Exception / ThrowingCasterException.php
index ed77feaa7b287cad82320a9d3516bfec5d6a2d56..976f4439b67f31291cc0a26a3a22b332676f80da 100644 (file)
@@ -19,13 +19,8 @@ class ThrowingCasterException extends \Exception
     /**
      * @param \Exception $prev The exception thrown from the caster
      */
-    public function __construct($prev, \Exception $e = null)
+    public function __construct(\Exception $prev)
     {
-        if (!$prev instanceof \Exception) {
-            @trigger_error('Providing $caster as the first argument of the '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Provide directly the $prev exception instead.', E_USER_DEPRECATED);
-
-            $prev = $e;
-        }
         parent::__construct('Unexpected '.get_class($prev).' thrown from a caster: '.$prev->getMessage(), 0, $prev);
     }
 }