Skip to content

Commit 0fdc793

Browse files
committed
Using FQ name for PHP_VERSION_ID
1 parent 8f93001 commit 0fdc793

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private function formatTimestamps(\IntlDateFormatter $formatter, $regex, array $
272272
$timezone = $formatter->getTimezoneId();
273273
$formattedTimestamps = array();
274274

275-
if ($setTimeZone = PHP_VERSION_ID >= 50500 || method_exists($formatter, 'setTimeZone')) {
275+
if ($setTimeZone = \PHP_VERSION_ID >= 50500 || method_exists($formatter, 'setTimeZone')) {
276276
$formatter->setTimeZone('UTC');
277277
} else {
278278
$formatter->setTimeZoneId('UTC');

Extension/Csrf/CsrfProvider/DefaultCsrfProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function isCsrfTokenValid($intention, $token)
8585
*/
8686
protected function getSessionId()
8787
{
88-
if (PHP_VERSION_ID >= 50400) {
88+
if (\PHP_VERSION_ID >= 50400) {
8989
if (PHP_SESSION_NONE === session_status()) {
9090
session_start();
9191
}

Tests/Extension/Validator/ValidatorTypeGuesserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testGuessRequired($constraint, $guess)
9090
*/
9191
public function testLegacyGuessRequired()
9292
{
93-
if (PHP_VERSION_ID >= 70000) {
93+
if (\PHP_VERSION_ID >= 70000) {
9494
$this->markTestSkipped('Cannot use a class called True on PHP 7 or higher.');
9595
}
9696
$true = 'Symfony\Component\Validator\Constraints\True';

0 commit comments

Comments
 (0)