Skip to content

Commit 4c38233

Browse files
committed
Use a non-deprecated date constant for phing.startTime property
1 parent 32ac18b commit 4c38233

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Phing/Phing.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
use SebastianBergmann\Version;
4848
use Symfony\Component\Console\Output\ConsoleOutput;
4949
use Throwable;
50-
5150
use function array_filter;
5251
use function array_map;
5352
use function array_reduce;
@@ -58,8 +57,6 @@
5857
use function strlen;
5958
use function strval;
6059
use function trim;
61-
62-
use const DATE_RFC7231;
6360
use const PHP_EOL;
6461

6562
/**
@@ -1669,7 +1666,7 @@ private static function setSystemConstants(): void
16691666
self::setProperty(self::PHP_VERSION, PHP_VERSION);
16701667
self::setProperty('php.tmpdir', sys_get_temp_dir());
16711668
self::setProperty('application.startdir', getcwd());
1672-
self::setProperty('phing.startTime', gmdate(DATE_RFC7231));
1669+
self::setProperty('phing.startTime', gmdate(\DateTimeInterface::RFC2822));
16731670

16741671
// try to detect machine dependent information
16751672
$sysInfo = [];

0 commit comments

Comments
 (0)