Skip to content

Commit

Permalink
Fix CI (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Jan 3, 2022
1 parent 369a086 commit 3c65138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3",
"phpstan/phpstan": "^1.2.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan": "^1.3",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5",
"slam/phpstan-extensions": "^6.0",
"squizlabs/php_codesniffer": "^3.6",
"thecodingmachine/phpstan-strict-rules": "^1.0.0"
"thecodingmachine/phpstan-strict-rules": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions src/DateTimeCloner.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class DateTimeCloner
*/
public static function cloneIntoDateTime(\DateTimeInterface $originalDate): \DateTime
{
/** @var \DateTimeZone|false $timezone */
$timezone = $originalDate->getTimezone();
$date = \DateTime::createFromFormat(
self::DATE_FORMAT_FOR_CLONE,
Expand All @@ -55,6 +56,7 @@ public static function cloneIntoDateTime(\DateTimeInterface $originalDate): \Dat
*/
public static function cloneIntoDateTimeImmutable(\DateTimeInterface $originalDate): \DateTimeImmutable
{
/** @var \DateTimeZone|false $timezone */
$timezone = $originalDate->getTimezone();
$date = \DateTimeImmutable::createFromFormat(
self::DATE_FORMAT_FOR_CLONE,
Expand Down

0 comments on commit 3c65138

Please sign in to comment.