From 6849a2a9949aea70644f2feb6e746ca07579f4c4 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Thu, 8 Sep 2022 12:01:14 +0200 Subject: [PATCH] fix tests --- tests/IntRangeTest.php | 2 +- tests/MethodCallTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/IntRangeTest.php b/tests/IntRangeTest.php index 5aa37992772..7d3491b73f8 100644 --- a/tests/IntRangeTest.php +++ b/tests/IntRangeTest.php @@ -687,7 +687,7 @@ function doAnalysis(): void /** @var string $secret */ $length = strlen($secret); if ($length > 16) { - throw new exception(""); + throw new Exception(""); } assert($length === 1); diff --git a/tests/MethodCallTest.php b/tests/MethodCallTest.php index 62860e8f209..f30f1115fdc 100644 --- a/tests/MethodCallTest.php +++ b/tests/MethodCallTest.php @@ -979,7 +979,7 @@ public static function new() : self { class Datetime extends \DateTime { - public static function createFromInterface(\DatetimeInterface $datetime): \DateTime + public static function createFromInterface(\DateTimeInterface $datetime): \DateTime { return parent::createFromInterface($datetime); }