Skip to content

Commit 4e79487

Browse files
committed
minor #23021 Using FQ name for PHP_VERSION_ID (fabpot)
This PR was merged into the 2.7 branch. Discussion ---------- Using FQ name for PHP_VERSION_ID | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22650, replaces #23000 | License | MIT | Doc PR | n/a Commits ------- 150a48b Using FQ name for PHP_VERSION_ID
2 parents df492e4 + 150a48b commit 4e79487

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Iterator/FilterIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ abstract class FilterIterator extends \FilterIterator
2929
*/
3030
public function rewind()
3131
{
32-
if (PHP_VERSION_ID > 50607 || (PHP_VERSION_ID > 50523 && PHP_VERSION_ID < 50600)) {
32+
if (\PHP_VERSION_ID > 50607 || (\PHP_VERSION_ID > 50523 && \PHP_VERSION_ID < 50600)) {
3333
parent::rewind();
3434

3535
return;

Iterator/RecursiveDirectoryIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function rewind()
119119
}
120120

121121
// @see https://bugs.php.net/68557
122-
if (PHP_VERSION_ID < 50523 || PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50607) {
122+
if (\PHP_VERSION_ID < 50523 || \PHP_VERSION_ID >= 50600 && \PHP_VERSION_ID < 50607) {
123123
parent::next();
124124
}
125125

0 commit comments

Comments
 (0)