From b5dcf67de0584953fbb855cb7feec8589b2faf8d Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:54:46 +0200 Subject: [PATCH] It is recommended not to use reserved keyword "object". --- src/DateTimeTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DateTimeTrait.php b/src/DateTimeTrait.php index d9b22e7..0cb4a51 100644 --- a/src/DateTimeTrait.php +++ b/src/DateTimeTrait.php @@ -301,10 +301,10 @@ public static function create_from_format( $format, $time, \DateTimeZone $timezo * * @link https://www.php.net/manual/en/datetime.createfrominterface.php * @link https://php.watch/versions/8.0/datetime-immutable-createfrominterface - * @param \DateTimeInterface $object The mutable DateTime object that you want to convert to an immutable version. + * @param \DateTimeInterface $value The mutable DateTime object that you want to convert to an immutable version. * @return self */ - public static function create_from_interface( \DateTimeInterface $object ): self { - return new self( $object->format( 'Y-m-d H:i:s.u' ), $object->getTimezone() ); + public static function create_from_interface( \DateTimeInterface $value ): self { + return new self( $value->format( 'Y-m-d H:i:s.u' ), $value->getTimezone() ); } }