Updated from some -dev modules to alpha, beta or full releases
[yaffs-website] / vendor / psy / psysh / src / Exception / TypeErrorException.php
index fe7ef129419fd55974ce5fd115ae1147917bad9a..9dbdb936517769ed4a3555d9f3e22a4fdcc4cbb2 100644 (file)
@@ -50,6 +50,6 @@ class TypeErrorException extends \Exception implements Exception
      */
     public static function fromTypeError(\TypeError $e)
     {
-        return new self($e->getMessage(), $e->getLine());
+        return new self($e->getMessage(), $e->getCode());
     }
 }