From 4d88560ca823795d6a5de51c1f47bcec3c5ac67f Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 14 Aug 2021 14:31:11 +0200 Subject: [PATCH] Use FQCN for in_array() --- src/Carbon/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Carbon/Factory.php b/src/Carbon/Factory.php index 81779fae92..a614043f21 100644 --- a/src/Carbon/Factory.php +++ b/src/Carbon/Factory.php @@ -290,7 +290,7 @@ public function __call($name, $arguments) return \in_array($parameter->getName(), ['tz', 'timezone'], true); }); - if (isset($arguments[0]) && in_array($name, ['instance', 'make', 'create', 'parse'], true)) { + if (isset($arguments[0]) && \in_array($name, ['instance', 'make', 'create', 'parse'], true)) { if ($arguments[0] instanceof DateTimeInterface) { $settings['innerTimezone'] = $settings['timezone']; } elseif (\is_string($arguments[0]) && date_parse($arguments[0])['is_localtime']) {