Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 139f16e

Browse filesBrowse files
authored
Update README.md
In composer Composer 1.9.0 2019-08-02 20:55:32 the env variable COMPOSER_DEV_MODE got been removed for post events. Please see the difference of the [post](https://github.com/composer/composer/blob/96ad0aa01fa49a39539c089ca4a1aa1a54cba98d/src/Composer/Installer.php#L321) and [pre](https://github.com/composer/composer/blob/96ad0aa01fa49a39539c089ca4a1aa1a54cba98d/src/Composer/Installer.php#L199) hooks. This happend [in this commit](composer/composer@4c4f516#diff-74425bc790838a69d0d16f06fc313edb)
1 parent a916b11 commit 139f16e
Copy full SHA for 139f16e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Due to security, when installed this way the Magento standard for phpcs cannot b
1111
You can achieve this by adding the following to your project's `composer.json`:
1212
````
1313
"scripts": {
14-
"post-install-cmd": [
15-
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
14+
"post-install-cmd": [
15+
"( [ -f vendor/bin/phpcs ] && [ -L vendor/bin/phpcs ] && vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/) || true"
1616
],
1717
"post-update-cmd": [
18-
"([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
18+
"( [ -f vendor/bin/phpcs ] && [ -L vendor/bin/phpcs ] && vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/) || true"
1919
]
2020
}
2121
````

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.