Skip to content

Commit 3c65138

Browse files
authored
Fix CI (#12)
1 parent 369a086 commit 3c65138

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
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": {

src/DateTimeCloner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)