Skip to content

Commit 3998483

Browse files
authored
Merge pull request #93 from TysonAndre/release-4.0.0
4.0.0: Forbid workspace/folder overrides for settings, update phan
2 parents 20991da + 0e7cb72 commit 3998483

File tree

6 files changed

+390
-201
lines changed

6 files changed

+390
-201
lines changed

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
vscode-php-phan NEWS
22
====================
33

4+
### 4.0.0 (2021-04-17)
5+
6+
- Prevent the settings `phan.phpExecutablePath`, `phan.phanScriptPath`, `phan.analyzedProjectDirectory`, `phan.additionalCLIFlags`, and `phan.connectToServerWithStdio` from being overridden in VS Code workspace or folder settings. (i.e. configure them with `"scope": "machine"` for https://github.com/microsoft/vscode/blob/1.55.2/src/vs/workbench/api/common/configurationExtensionPoint.ts#L50-L55) (CVE-2021-31416)
7+
(checking in connectToServerWithStdio in workplace settings is harmless but may break the workflows of other developers working on different machines.)
8+
(vscode-php-phan is only intended for use with projects that a developer has manually trusted and enabled through analyzedProjectDirectory, although more convenient ways to securely trust php projects may be added in the future (e.g. using Memento). This is because phan allows executable paths or executable PHP code in third party plugins and InvokePHPNativeSyntaxCheckPlugin, as well as phan config files and due to certain CLI flags and config settings.)
9+
10+
The VS code extension version can be [downgraded to 3.0.0](https://code.visualstudio.com/updates/v1_30#_install-previous-versions) if you rely on those workspace settings.
11+
- Update Phan from 4.0.2 to 4.0.4
12+
- See [Phan's NEWS](https://github.com/phan/phan/blob/4.0.2/NEWS.md) for more details.
13+
414
### 3.0.0 (2021-01-09)
515

616
- Increase the minimum php-ast version to 1.0.7+ if php-ast is installed.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ You may want to disable VS Code's built-in IntelliSense for PHP by setting `php.
139139

140140
## Release History
141141

142+
### 4.0.0 (2021-04-17)
143+
144+
- Prevent the settings `phan.phpExecutablePath`, `phan.phanScriptPath`, `phan.analyzedProjectDirectory`, `phan.additionalCLIFlags`, and `phan.connectToServerWithStdio` from being overridden in VS Code workspace or folder settings. (i.e. configure them with `"scope": "machine"` for https://github.com/microsoft/vscode/blob/1.55.2/src/vs/workbench/api/common/configurationExtensionPoint.ts#L50-L55) (CVE-2021-31416)
145+
(checking in connectToServerWithStdio in workplace settings is harmless but may break the workflows of other developers working on different machines.)
146+
(vscode-php-phan is only intended for use with projects that a developer has manually trusted and enabled through analyzedProjectDirectory, although more convenient ways to securely trust php projects may be added in the future (e.g. using Memento). This is because phan allows executable paths or executable PHP code in third party plugins and InvokePHPNativeSyntaxCheckPlugin, as well as phan config files and due to certain CLI flags and config settings.)
147+
148+
The VS code extension version can be [downgraded to 3.0.0](https://code.visualstudio.com/updates/v1_30#_install-previous-versions) if you rely on the ability to set those workspace settings.
149+
- Update Phan from 4.0.2 to 4.0.4
150+
- See [Phan's NEWS](https://github.com/phan/phan/blob/4.0.2/NEWS.md) for more details.
151+
142152
### 3.0.0 (2021-01-09)
143153

144154
- Increase the minimum php-ast version to 1.0.7+ if php-ast is installed.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
},
1111
"require": {
1212
"php": "^7.2.0",
13-
"phan/phan": "4.0.2"
13+
"phan/phan": "4.0.4"
1414
}
1515
}

0 commit comments

Comments
 (0)