-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,8 +160,8 @@ class RecursiveIteratorIterator | |
|
||
/** | ||
* @param T $iterator | ||
* @param int $mode | ||
* @param int $flags | ||
* @param self::LEAVES_ONLY|self::SELF_FIRST|self::CHILD_FIRST $mode | ||
* @param 0|self::CATCH_GET_CHILD $flags | ||
*/ | ||
public function __construct( | ||
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-4 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-4 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-4 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/bug-9622 echo -n > phpstan-baseline.neon ../../bin/phpstan -vvv pa...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/bug-9622 echo -n > phpstan-baseline.neon ../../bin/phpstan -vvv pa...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/bug-9622 echo -n > phpstan-baseline.neon ../../bin/phpstan -vvv pa...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-3 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-3 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-3 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (cd e2e/baseline-uninit-prop-trait ../../bin/phpstan analyse --debug --configuration te...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (cd e2e/baseline-uninit-prop-trait ../../bin/phpstan analyse --debug --configuration te...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (cd e2e/baseline-uninit-prop-trait ../../bin/phpstan analyse --debug --configuration te...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-1 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-1 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-1 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/bug-9622-trait echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/bug-9622-trait echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/bug-9622-trait echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/soap.php -c tests/e2e/data/empty.neon tests...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 e2e/phpstan-phpunit-190/test.php -c e2e/phpstan-phpunit-190/t...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 e2e/phpstan-phpunit-190/test.php -c e2e/phpstan-phpunit-190/t...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / E2E tests (bin/phpstan analyse -l 8 e2e/phpstan-phpunit-190/test.php -c e2e/phpstan-phpunit-190/t...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-5 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-5 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-5 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-2 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-2 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Result cache E2E tests (cd e2e/result-cache-2 echo -n > phpstan-baseline.neon ../../bin/phpstan -...
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Compiler Tests
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Compiler Tests
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Compiler Tests
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.2)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.2)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.2)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.3)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.3)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.3)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.0, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.0, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.0, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.1)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.1)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.1, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan with result cache (8.1)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.1, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.1, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.4, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.4, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.4, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Integration tests (ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Integration tests (ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Integration tests (ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.1, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.1, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.1, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.0, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.0, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.0, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.4, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.4, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.4, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.1, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.1, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.1, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.0, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.0, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.0, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.3, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.4, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.4, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.4, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (8.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests with old PHPUnit (7.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests with old PHPUnit (7.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests with old PHPUnit (7.2, ubuntu-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Integration tests (windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Integration tests (windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Integration tests (windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.1, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.1, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.1, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.4, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.4, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.4, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.0, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.0, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.0, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (7.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.3, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / Tests (8.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.2, windows-latest)
Check failure on line 166 in stubs/iterable.stub GitHub Actions / PHPStan (7.2, windows-latest)
|
||
$iterator, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Bug10324; | ||
|
||
use RecursiveIteratorIterator; | ||
use RecursiveDirectoryIterator; | ||
|
||
class HelloWorld | ||
{ | ||
public function findfile(string $directory, string $filename): ?string | ||
{ | ||
$fontPath = null; | ||
$it = new RecursiveDirectoryIterator( | ||
$directory, | ||
RecursiveDirectoryIterator::SKIP_DOTS | ||
| RecursiveDirectoryIterator::FOLLOW_SYMLINKS | ||
); | ||
foreach ( | ||
new RecursiveIteratorIterator( | ||
$it, | ||
RecursiveIteratorIterator::LEAVES_ONLY, | ||
//RecursiveIteratorIterator::CATCH_GET_CHILD | ||
RecursiveIteratorIterator::CHILD_FIRST | ||
) as $file | ||
) { | ||
if (basename($file) === $filename) { | ||
$fontPath = $file; | ||
break; | ||
} | ||
} | ||
return $fontPath; | ||
} | ||
} |