Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc5cec6

Browse files
committed
Corrected version check method.
1 parentde24c81 commitdc5cec6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎src/Symfony/Component/Finder/Iterator/FilterIterator.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ abstract class FilterIterator extends \FilterIterator
2929
*/
3030
publicfunctionrewind()
3131
{
32-
if (version_compare(PHP_VERSION,'5.5.23','<')
33-
or (version_compare(PHP_VERSION,'5.6.0','>=')andversion_compare(PHP_VERSION,'5.6.7','<'))) {
32+
if (PHP_VERSION_ID <50523 ||PHP_VERSION_ID >=50600 &&PHP_VERSION_ID <50607) {
3433
$iterator =$this;
3534
while ($iteratorinstanceof \OuterIterator) {
3635
$innerIterator =$iterator->getInnerIterator();

‎src/Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php‎

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

121121
// @see https://bugs.php.net/bug.php?id=68557
122-
if (version_compare(PHP_VERSION,'5.5.23','<')
123-
or (version_compare(PHP_VERSION,'5.6.0','>=')andversion_compare(PHP_VERSION,'5.6.7','<'))) {
122+
if (PHP_VERSION_ID <50523 ||PHP_VERSION_ID >=50600 &&PHP_VERSION_ID <50607) {
124123
parent::next();
125124
}
126125

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp