From ede95105ac32ed2a85f2364a2b4263aebd8e8301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarmo=20Lepp=C3=A4nen?= Date: Sun, 14 Feb 2021 19:07:39 +0200 Subject: [PATCH] Update CoreImmutableClasses.phpstub (#5218) Fixes wrong parameter names - https://psalm.dev/r/8cfdb309d9 --- stubs/CoreImmutableClasses.phpstub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/CoreImmutableClasses.phpstub b/stubs/CoreImmutableClasses.phpstub index 98968b722..cccb6814d 100644 --- a/stubs/CoreImmutableClasses.phpstub +++ b/stubs/CoreImmutableClasses.phpstub @@ -5,7 +5,7 @@ */ class DateTimeImmutable implements DateTimeInterface { - public function __construct(string $time = "now", DateTimeZone $tz = null) {} + public function __construct(string $datetime = "now", DateTimeZone $timezone = null) {} } /** @@ -13,7 +13,7 @@ class DateTimeImmutable implements DateTimeInterface */ class DateTimeZone { - public function __construct(string $tz) {} + public function __construct(string $timezone) {} } /**