Lines Matching refs:flagsByPhpVersions
4126 function generateVersionDependentFlagCode(string $codeTemplate, array $flagsByPhpVersions, ?int $ph… argument
4134 if (empty($flagsByPhpVersions[$currentPhpVersion])) {
4138 return [sprintf($codeTemplate, implode("|", $flagsByPhpVersions[$currentPhpVersion]))];
4142 ksort($flagsByPhpVersions);
4143 $index = array_search($phpVersionIdMinimumCompatibility, array_keys($flagsByPhpVersions));
4147 $flagsByPhpVersions = array_slice($flagsByPhpVersions, $index, null, true);
4150 $flagsByPhpVersions = array_filter(
4151 $flagsByPhpVersions,
4157 if (empty($flagsByPhpVersions)) {
4163 foreach ($flagsByPhpVersions as $versionId => $versionFlags) {
4164 … if ($previousVersionId !== null && $flagsByPhpVersions[$previousVersionId] === $versionFlags) {
4165 unset($flagsByPhpVersions[$versionId]);
4171 $flagCount = count($flagsByPhpVersions);
4175 reset($flagsByPhpVersions);
4176 $firstVersion = key($flagsByPhpVersions);
4178 return [sprintf($codeTemplate, implode("|", reset($flagsByPhpVersions)))];
4185 foreach (array_reverse($flagsByPhpVersions, true) as $version => $versionFlags) {