Skip to content

Commit e9fce01

Browse files
authored
Merge pull request #6800 from ampproject/update/php-css-parser-8.4.0
Upgrade php-css-parser to v8.4.0
2 parents 3b0b45a + ee6f7c7 commit e9fce01

File tree

5 files changed

+133
-391
lines changed

5 files changed

+133
-391
lines changed

Gruntfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module.exports = function( grunt ) {
1010
'assets',
1111
'back-compat',
1212
'includes',
13-
'php-css-parser-install-composer-plugin',
1413
'src',
1514
'templates',
1615
'uninstall.php',
@@ -26,7 +25,6 @@ module.exports = function( grunt ) {
2625
// ⚠️ Warning: These paths are passed straight to rm command in the shell, without any escaping.
2726
const productionInstallExcludedFilePatterns = [
2827
'composer.*',
29-
'php-css-parser-install-composer-plugin',
3028
'vendor/*/*/.editorconfig',
3129
'vendor/*/*/.git',
3230
'vendor/*/*/.github',

composer.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
"ampproject/amp-toolbox": "0.10.0",
1818
"cweagans/composer-patches": "~1.0",
1919
"fasterimage/fasterimage": "1.5.0",
20-
"sabberworm/php-css-parser": "dev-master#bfdd976"
20+
"sabberworm/php-css-parser": "8.4.0"
2121
},
2222
"require-dev": {
23-
"ampproject/php-css-parser-install-plugin": "*",
2423
"automattic/vipwpcs": "^2.2",
2524
"civicrm/composer-downloads-plugin": "^3.0",
2625
"dealerdirect/phpcodesniffer-composer-installer": "0.7.2",
@@ -43,12 +42,6 @@
4342
"ext-intl": "Enables use of idn_to_utf8() to convert punycode domains to UTF-8 for use with an AMP Cache.",
4443
"ext-mbstring": "Used by PHP-CSS-Parser when working with stylesheets."
4544
},
46-
"repositories": [
47-
{
48-
"type": "path",
49-
"url": "./php-css-parser-install-composer-plugin"
50-
}
51-
],
5245
"minimum-stability": "dev",
5346
"prefer-stable": true,
5447
"autoload": {
@@ -77,7 +70,6 @@
7770
},
7871
"config": {
7972
"allow-plugins": {
80-
"ampproject/php-css-parser-install-plugin": true,
8173
"civicrm/composer-downloads-plugin": true,
8274
"cweagans/composer-patches": true,
8375
"dealerdirect/phpcodesniffer-composer-installer": true
@@ -88,6 +80,7 @@
8880
"sort-packages": true
8981
},
9082
"extra": {
83+
"composer-exit-on-patch-failure": true,
9184
"downloads": {
9285
"phpstan": {
9386
"path": "vendor/bin/phpstan",
@@ -100,9 +93,9 @@
10093
"Fix ReflectionParameter warnings on PHP 8": "patches/phpunit-mock-objects.patch"
10194
},
10295
"sabberworm/php-css-parser": {
103-
"1. 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",
104-
"2. Validate name-start code points for identifier <https://github.com/sabberworm/PHP-CSS-Parser/pull/185>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/d42b64793f2edaffeb663c63e9de79069cdc0831%5E...113df5d55e94e21c6402021dfa959924941d4c29.patch",
105-
"3. 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"
96+
"1. Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/350>": "https://github.com/westonruter/PHP-CSS-Parser/commit/5b1d6a4abe43f4311d9b4674913ca665ed8c43aa.diff",
97+
"2. Validate name-start code points for identifier <https://github.com/westonruter/PHP-CSS-Parser/pull/2>": "https://github.com/westonruter/PHP-CSS-Parser/commit/9f96bc97fcb1e848a2f6ca6f658009996883dffc.diff",
98+
"3. Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "https://github.com/westonruter/PHP-CSS-Parser/commit/dc18ba737fd6a611189a5b83729396500676f8dd.diff"
10699
}
107100
}
108101
},

0 commit comments

Comments
 (0)