Skip to content

Commit b604e4c

Browse files
authored
Merge pull request #5082 from google/fix/composer-patches
2 parents c034a53 + 0becc8c commit b604e4c

File tree

6 files changed

+30
-929
lines changed

6 files changed

+30
-929
lines changed

composer.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"ext-json": "*",
1212
"ext-libxml": "*",
1313
"ext-mbstring": "*",
14-
"ampproject/amp-wp": "^2.0.4",
14+
"ampproject/amp-wp": "^2.0.5",
1515
"civicrm/composer-downloads-plugin": "^3.0",
1616
"cweagans/composer-patches": "^1.6",
1717
"mcaskill/composer-exclude-files": "^2.0",
@@ -23,7 +23,6 @@
2323
},
2424
"require-dev": {
2525
"automattic/vipwpcs": "^2.1",
26-
"civicrm/composer-downloads-plugin": "^3.0",
2726
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
2827
"php-stubs/wordpress-stubs": "^5.5",
2928
"phpcompatibility/phpcompatibility-wp": "^2.1",
@@ -53,14 +52,28 @@
5352
"type": "phar"
5453
}
5554
},
56-
"enable-patching": false,
5755
"exclude-from-files": [
5856
"ampproject/amp-wp/back-compat/back-compat.php",
5957
"ampproject/amp-wp/includes/amp-helper-functions.php",
6058
"ampproject/amp-wp/includes/admin/functions.php",
6159
"ampproject/amp-wp/includes/deprecated.php",
6260
"ampproject/amp-wp/docs/includes/register-wp-cli-commands.php"
63-
]
61+
],
62+
"patches": {
63+
"sabberworm/php-css-parser": {
64+
"Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/193>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/3bc5ded67d77a52b81608cfc97f23b1bb0678e2f%5E...468da3441945e9c1bf402a3340b1d8326723f7d9.patch",
65+
"Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "https://github.com/westonruter/PHP-CSS-Parser/compare/master...10a2501c119abafced3e4014aa3c0a3453a86f67.patch"
66+
}
67+
},
68+
"patches-ignore": {
69+
"ampproject/amp-wp": {
70+
"sabberworm/php-css-parser": {
71+
"Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/193>": "patches/php-css-parser-pull-193.patch",
72+
"Validate name-start code points for identifier <https://github.com/sabberworm/PHP-CSS-Parser/pull/185>": "patches/php-css-parser-pull-185.patch",
73+
"Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "patches/php-css-parser-commit-10a2501.patch"
74+
}
75+
}
76+
}
6477
},
6578
"autoload": {
6679
"psr-4": {
@@ -83,6 +96,11 @@
8396
"type": "vcs",
8497
"url": "https://github.com/ampproject/amp-wp",
8598
"no-api": true
99+
},
100+
{
101+
"type": "vcs",
102+
"url": "https://github.com/sabberworm/PHP-CSS-Parser.git",
103+
"no-api": true
86104
}
87105
],
88106
"minimum-stability": "dev",

composer.lock

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches/php-css-parser-commit-10a2501.patch

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)