File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 },
2222 "require-dev" : {
2323 "friendsofphp/php-cs-fixer" : " ^3.3" ,
24- "phpstan/phpstan" : " ^1.2.0 " ,
25- "phpstan/phpstan-phpunit" : " ^1.0.0 " ,
24+ "phpstan/phpstan" : " ^1.3 " ,
25+ "phpstan/phpstan-phpunit" : " ^1.0" ,
2626 "phpunit/phpunit" : " ^9.5" ,
2727 "slam/phpstan-extensions" : " ^6.0" ,
2828 "squizlabs/php_codesniffer" : " ^3.6" ,
29- "thecodingmachine/phpstan-strict-rules" : " ^1.0.0 "
29+ "thecodingmachine/phpstan-strict-rules" : " ^1.0"
3030 },
3131 "autoload" : {
3232 "psr-4" : {
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class DateTimeCloner
3232 */
3333 public static function cloneIntoDateTime (\DateTimeInterface $ originalDate ): \DateTime
3434 {
35+ /** @var \DateTimeZone|false $timezone */
3536 $ timezone = $ originalDate ->getTimezone ();
3637 $ date = \DateTime::createFromFormat (
3738 self ::DATE_FORMAT_FOR_CLONE ,
@@ -55,6 +56,7 @@ public static function cloneIntoDateTime(\DateTimeInterface $originalDate): \Dat
5556 */
5657 public static function cloneIntoDateTimeImmutable (\DateTimeInterface $ originalDate ): \DateTimeImmutable
5758 {
59+ /** @var \DateTimeZone|false $timezone */
5860 $ timezone = $ originalDate ->getTimezone ();
5961 $ date = \DateTimeImmutable::createFromFormat (
6062 self ::DATE_FORMAT_FOR_CLONE ,
You can’t perform that action at this time.
0 commit comments