feat(php): switch the PHP language level from the status bar (#1371)

With a PHP file focused, the status bar shows the PHP level Intelephense
checks against (`PHP 7.4`); the tooltip says where it comes from (the
settings, config.platform.php or require.php). Clicking it opens Auto (with
the composer.json version) and 5.6 to 8.5; picking one writes the same
project setting as Settings › Languages & Frameworks › PHP, so diagnostics
follow without reopening the project. The widget is hidden for other files.
For a file of a linked workspace project, the level comes from that
project's settings and the choices are disabled. The menu is also the
action "PHP Language Level".

Closes #1091

Co-authored-by: DanielADK <[email protected]>
Цей коміт міститься в:
Daniel AdámekтаDanielADK authored and GitHub committed 2026-11-05 07:45:26 +08:00
1 джерело 742e504719
коміт 2ba731f0ec
14 files changed
+665 -12

No files matched your search

+9
Переглянути файл
@@ -5761,6 +5761,15 @@
"PHP language level": "Niveau de langage PHP",
"The PHP version Intelephense checks the code against: newer syntax and functions are reported. Auto uses config.platform.php from composer.json, else the lowest version require.php allows.": "La version de PHP par rapport à laquelle Intelephense vérifie le code : la syntaxe et les fonctions plus récentes sont signalées. Auto utilise config.platform.php de composer.json, sinon la version la plus basse autorisée par require.php.",
"from composer.json": "depuis composer.json",
"PHP Language Level": "Niveau de langage PHP",
"PHP Language Level: {label}": "Niveau de langage PHP : {label}",
"Select PHP Language Level": "Sélectionner le niveau de langage PHP",
"Cannot select PHP language level": "Impossible de sélectionner le niveau de langage PHP",
"No PHP version in the settings or composer.json: Intelephense uses its default": "Aucune version de PHP dans les paramètres ni dans composer.json : Intelephense utilise sa version par défaut",
"PHP {version}, set in the settings": "PHP {version}, défini dans les paramètres",
"PHP {version}, from config.platform.php in composer.json": "PHP {version}, depuis config.platform.php de composer.json",
"PHP {version}, the lowest version require.php in composer.json allows": "PHP {version}, la version la plus basse autorisée par require.php de composer.json",
"Set in the settings of the linked project {name}": "Défini dans les paramètres du projet lié {name}",
"select files in a git repository to shelve": "sélectionnez les fichiers d'un dépôt git à mettre de côté",
"select files from a single git repository to shelve": "sélectionnez les fichiers d'un seul dépôt git à mettre de côté",
"External file changes sync may be slow": "La synchronisation des modifications externes de fichiers peut être lente",
+9
Переглянути файл
@@ -5615,6 +5615,15 @@
"PHP language level": "PHP 언어 레벨",
"The PHP version Intelephense checks the code against: newer syntax and functions are reported. Auto uses config.platform.php from composer.json, else the lowest version require.php allows.": "Intelephense가 코드를 검사하는 기준 PHP 버전입니다. 더 새로운 문법과 함수가 보고됩니다. 자동은 composer.json의 config.platform.php를 사용하고, 없으면 require.php가 허용하는 가장 낮은 버전을 사용합니다.",
"from composer.json": "composer.json 기준",
"PHP Language Level": "PHP 언어 레벨",
"PHP Language Level: {label}": "PHP 언어 레벨: {label}",
"Select PHP Language Level": "PHP 언어 레벨 선택",
"Cannot select PHP language level": "PHP 언어 레벨을 선택할 수 없습니다",
"No PHP version in the settings or composer.json: Intelephense uses its default": "설정과 composer.json에 PHP 버전이 없습니다. Intelephense가 기본 버전을 사용합니다",
"PHP {version}, set in the settings": "PHP {version}, 설정에서 지정",
"PHP {version}, from config.platform.php in composer.json": "PHP {version}, composer.json의 config.platform.php 기준",
"PHP {version}, the lowest version require.php in composer.json allows": "PHP {version}, composer.json의 require.php가 허용하는 가장 낮은 버전",
"Set in the settings of the linked project {name}": "연결된 프로젝트 {name}의 설정에서 지정",
"select files in a git repository to shelve": "셸브할 git 저장소의 파일을 선택하세요",
"select files from a single git repository to shelve": "셸브할 단일 git 저장소의 파일을 선택하세요",
"External file changes sync may be slow": "외부 파일 변경 사항 동기화가 느릴 수 있습니다",
+9
Переглянути файл
@@ -5655,6 +5655,15 @@
"PHP language level": "PHP 语言级别",
"The PHP version Intelephense checks the code against: newer syntax and functions are reported. Auto uses config.platform.php from composer.json, else the lowest version require.php allows.": "Intelephense 检查代码时所针对的 PHP 版本:更新版本的语法和函数会被报告。“自动”使用 composer.json 中的 config.platform.php,否则使用 require.php 允许的最低版本。",
"from composer.json": "来自 composer.json",
"PHP Language Level": "PHP 语言级别",
"PHP Language Level: {label}": "PHP 语言级别:{label}",
"Select PHP Language Level": "选择 PHP 语言级别",
"Cannot select PHP language level": "无法选择 PHP 语言级别",
"No PHP version in the settings or composer.json: Intelephense uses its default": "设置和 composer.json 中均未指定 PHP 版本:Intelephense 使用其默认版本",
"PHP {version}, set in the settings": "PHP {version},在设置中指定",
"PHP {version}, from config.platform.php in composer.json": "PHP {version},来自 composer.json 中的 config.platform.php",
"PHP {version}, the lowest version require.php in composer.json allows": "PHP {version},composer.json 中 require.php 允许的最低版本",
"Set in the settings of the linked project {name}": "在关联项目 {name} 的设置中指定",
"Include paths": "包含路径",
"Folders outside the project whose classes and functions Intelephense indexes too, such as the platform a module extends. Absolute, or relative to the project.": "Intelephense 额外索引其中类和函数的项目外文件夹,例如模块所扩展的平台。可以是绝对路径,或相对于项目的路径。",
"No include paths": "没有包含路径",