Skip to content

Commit

Permalink
Work around issue in Safe/DateTimeImmutable (infection#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai authored and maks-rafalko committed Oct 24, 2020
1 parent f67382a commit 402375d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/Logger/ConsoleLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

namespace Infection\Tests\Logger;

use DateTimeImmutable as UnsafeDateTimeImmutable;
use Infection\Console\IO;
use Infection\Logger\ConsoleLogger;
use function Infection\Tests\normalize_trailing_spaces;
Expand All @@ -43,7 +44,6 @@
use PHPUnit\Framework\TestCase;
use Psr\Log\LogLevel;
use Safe\DateTime;
use Safe\DateTimeImmutable;
use function Safe\fopen;
use stdClass;
use Symfony\Component\Console\Input\StringInput;
Expand Down Expand Up @@ -185,7 +185,7 @@ public static function valueToCastProvider(): iterable
yield 'object' => [new stdClass(), '[object stdClass]'];

yield 'datetime' => [
DateTimeImmutable::createFromFormat(
UnsafeDateTimeImmutable::createFromFormat(
DateTime::ATOM,
'2020-04-26T07:32:25+00:00'
),
Expand Down

0 comments on commit 402375d

Please sign in to comment.