Lines Matching refs:flagsByPhpVersions
4410 function generateVersionDependentFlagCode(string $codeTemplate, array $flagsByPhpVersions, ?int $ph… argument
4418 if (empty($flagsByPhpVersions[$currentPhpVersion])) {
4422 return [sprintf($codeTemplate, implode("|", $flagsByPhpVersions[$currentPhpVersion]))];
4426 ksort($flagsByPhpVersions);
4427 $index = array_search($phpVersionIdMinimumCompatibility, array_keys($flagsByPhpVersions));
4431 $flagsByPhpVersions = array_slice($flagsByPhpVersions, $index, null, true);
4434 $flagsByPhpVersions = array_filter(
4435 $flagsByPhpVersions,
4441 if (empty($flagsByPhpVersions)) {
4447 foreach ($flagsByPhpVersions as $versionId => $versionFlags) {
4448 … if ($previousVersionId !== null && $flagsByPhpVersions[$previousVersionId] === $versionFlags) {
4449 unset($flagsByPhpVersions[$versionId]);
4455 $flagCount = count($flagsByPhpVersions);
4459 reset($flagsByPhpVersions);
4460 $firstVersion = key($flagsByPhpVersions);
4462 return [sprintf($codeTemplate, implode("|", reset($flagsByPhpVersions)))];
4469 foreach (array_reverse($flagsByPhpVersions, true) as $version => $versionFlags) {