Skip to content

Commit 7ac5942

Browse files
committed
Updated the composer dependencies
1 parent 6b1aab1 commit 7ac5942

35 files changed

+543
-350
lines changed

wcfsetup/install/files/lib/system/api/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"require": {
13-
"cuyz/valinor": "^1.16.1",
13+
"cuyz/valinor": "^1.17.0",
1414
"dragonmantank/cron-expression": "^3.4.0",
1515
"erusev/parsedown": "^1.7.4",
1616
"ezyang/htmlpurifier": "^4.18",

wcfsetup/install/files/lib/system/api/composer.lock

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

wcfsetup/install/files/lib/system/api/composer/autoload_classmap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@
12481248
'Random\\RandomError' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php',
12491249
'Random\\RandomException' => $vendorDir . '/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php',
12501250
'SQLite3Exception' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php',
1251+
'Sabberworm\\CSS\\CSSElement' => $vendorDir . '/sabberworm/php-css-parser/src/CSSElement.php',
12511252
'Sabberworm\\CSS\\CSSList\\AtRuleBlockList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php',
12521253
'Sabberworm\\CSS\\CSSList\\CSSBlockList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php',
12531254
'Sabberworm\\CSS\\CSSList\\CSSList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/CSSList.php',
@@ -1264,6 +1265,8 @@
12641265
'Sabberworm\\CSS\\Parsing\\SourceException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/SourceException.php',
12651266
'Sabberworm\\CSS\\Parsing\\UnexpectedEOFException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php',
12661267
'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php',
1268+
'Sabberworm\\CSS\\Position\\Position' => $vendorDir . '/sabberworm/php-css-parser/src/Position/Position.php',
1269+
'Sabberworm\\CSS\\Position\\Positionable' => $vendorDir . '/sabberworm/php-css-parser/src/Position/Positionable.php',
12671270
'Sabberworm\\CSS\\Property\\AtRule' => $vendorDir . '/sabberworm/php-css-parser/src/Property/AtRule.php',
12681271
'Sabberworm\\CSS\\Property\\CSSNamespace' => $vendorDir . '/sabberworm/php-css-parser/src/Property/CSSNamespace.php',
12691272
'Sabberworm\\CSS\\Property\\Charset' => $vendorDir . '/sabberworm/php-css-parser/src/Property/Charset.php',

wcfsetup/install/files/lib/system/api/composer/autoload_static.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,7 @@ class ComposerStaticInita1f5f7c74275d47a45049a2936db1d0d
14911491
'Random\\RandomError' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/RandomError.php',
14921492
'Random\\RandomException' => __DIR__ . '/..' . '/symfony/polyfill-php82/Resources/stubs/Random/RandomException.php',
14931493
'SQLite3Exception' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php',
1494+
'Sabberworm\\CSS\\CSSElement' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSElement.php',
14941495
'Sabberworm\\CSS\\CSSList\\AtRuleBlockList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php',
14951496
'Sabberworm\\CSS\\CSSList\\CSSBlockList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php',
14961497
'Sabberworm\\CSS\\CSSList\\CSSList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/CSSList.php',
@@ -1507,6 +1508,8 @@ class ComposerStaticInita1f5f7c74275d47a45049a2936db1d0d
15071508
'Sabberworm\\CSS\\Parsing\\SourceException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/SourceException.php',
15081509
'Sabberworm\\CSS\\Parsing\\UnexpectedEOFException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php',
15091510
'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php',
1511+
'Sabberworm\\CSS\\Position\\Position' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Position/Position.php',
1512+
'Sabberworm\\CSS\\Position\\Positionable' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Position/Positionable.php',
15101513
'Sabberworm\\CSS\\Property\\AtRule' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/AtRule.php',
15111514
'Sabberworm\\CSS\\Property\\CSSNamespace' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/CSSNamespace.php',
15121515
'Sabberworm\\CSS\\Property\\Charset' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/Charset.php',

wcfsetup/install/files/lib/system/api/composer/installed.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@
6565
},
6666
{
6767
"name": "cuyz/valinor",
68-
"version": "1.16.1",
69-
"version_normalized": "1.16.1.0",
68+
"version": "1.17.0",
69+
"version_normalized": "1.17.0.0",
7070
"source": {
7171
"type": "git",
7272
"url": "https://github.com/CuyZ/Valinor.git",
73-
"reference": "acbda7ff3c25e5749f1e04ed183b3795434264c0"
73+
"reference": "9eb2802797e36f3af1fd6e13ff23e4e3d0058022"
7474
},
7575
"dist": {
7676
"type": "zip",
77-
"url": "https://api.github.com/repos/CuyZ/Valinor/zipball/acbda7ff3c25e5749f1e04ed183b3795434264c0",
78-
"reference": "acbda7ff3c25e5749f1e04ed183b3795434264c0",
77+
"url": "https://api.github.com/repos/CuyZ/Valinor/zipball/9eb2802797e36f3af1fd6e13ff23e4e3d0058022",
78+
"reference": "9eb2802797e36f3af1fd6e13ff23e4e3d0058022",
7979
"shasum": ""
8080
},
8181
"require": {
@@ -89,7 +89,7 @@
8989
},
9090
"require-dev": {
9191
"friendsofphp/php-cs-fixer": "^3.4",
92-
"infection/infection": "^0.27",
92+
"infection/infection": "^0.29",
9393
"marcocesarato/php-conventional-changelog": "^1.12",
9494
"mikey179/vfsstream": "^1.6.10",
9595
"phpbench/phpbench": "^1.3",
@@ -98,9 +98,9 @@
9898
"phpstan/phpstan-strict-rules": "^2.0",
9999
"phpunit/phpunit": "^10.5",
100100
"rector/rector": "^2.0",
101-
"vimeo/psalm": "^5.0"
101+
"vimeo/psalm": "^6.0"
102102
},
103-
"time": "2025-05-19T13:46:02+00:00",
103+
"time": "2025-06-20T06:40:38+00:00",
104104
"type": "library",
105105
"installation-source": "dist",
106106
"autoload": {
@@ -134,7 +134,7 @@
134134
],
135135
"support": {
136136
"issues": "https://github.com/CuyZ/Valinor/issues",
137-
"source": "https://github.com/CuyZ/Valinor/tree/1.16.1"
137+
"source": "https://github.com/CuyZ/Valinor/tree/1.17.0"
138138
},
139139
"funding": [
140140
{
@@ -1934,30 +1934,31 @@
19341934
},
19351935
{
19361936
"name": "sabberworm/php-css-parser",
1937-
"version": "v8.8.0",
1938-
"version_normalized": "8.8.0.0",
1937+
"version": "v8.9.0",
1938+
"version_normalized": "8.9.0.0",
19391939
"source": {
19401940
"type": "git",
19411941
"url": "https://github.com/MyIntervals/PHP-CSS-Parser.git",
1942-
"reference": "3de493bdddfd1f051249af725c7e0d2c38fed740"
1942+
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9"
19431943
},
19441944
"dist": {
19451945
"type": "zip",
1946-
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/3de493bdddfd1f051249af725c7e0d2c38fed740",
1947-
"reference": "3de493bdddfd1f051249af725c7e0d2c38fed740",
1946+
"url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9",
1947+
"reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9",
19481948
"shasum": ""
19491949
},
19501950
"require": {
19511951
"ext-iconv": "*",
19521952
"php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
19531953
},
19541954
"require-dev": {
1955-
"phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41"
1955+
"phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41",
1956+
"rawr/cross-data-providers": "^2.0.0"
19561957
},
19571958
"suggest": {
19581959
"ext-mbstring": "for parsing UTF-8 CSS"
19591960
},
1960-
"time": "2025-03-23T17:59:05+00:00",
1961+
"time": "2025-07-11T13:20:48+00:00",
19611962
"type": "library",
19621963
"extra": {
19631964
"branch-alias": {
@@ -1996,7 +1997,7 @@
19961997
],
19971998
"support": {
19981999
"issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues",
1999-
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.8.0"
2000+
"source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0"
20002001
},
20012002
"install-path": "../sabberworm/php-css-parser"
20022003
},

wcfsetup/install/files/lib/system/api/composer/installed.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => '__root__',
44
'pretty_version' => '6.1.x-dev',
55
'version' => '6.1.9999999.9999999-dev',
6-
'reference' => '4636c7477b39e0b4b7c37d14031e678e3bb2a278',
6+
'reference' => '6b1aab1471031f584a76b5463943aa39af3ede70',
77
'type' => 'project',
88
'install_path' => __DIR__ . '/../',
99
'aliases' => array(),
@@ -13,7 +13,7 @@
1313
'__root__' => array(
1414
'pretty_version' => '6.1.x-dev',
1515
'version' => '6.1.9999999.9999999-dev',
16-
'reference' => '4636c7477b39e0b4b7c37d14031e678e3bb2a278',
16+
'reference' => '6b1aab1471031f584a76b5463943aa39af3ede70',
1717
'type' => 'project',
1818
'install_path' => __DIR__ . '/../',
1919
'aliases' => array(),
@@ -29,9 +29,9 @@
2929
'dev_requirement' => false,
3030
),
3131
'cuyz/valinor' => array(
32-
'pretty_version' => '1.16.1',
33-
'version' => '1.16.1.0',
34-
'reference' => 'acbda7ff3c25e5749f1e04ed183b3795434264c0',
32+
'pretty_version' => '1.17.0',
33+
'version' => '1.17.0.0',
34+
'reference' => '9eb2802797e36f3af1fd6e13ff23e4e3d0058022',
3535
'type' => 'library',
3636
'install_path' => __DIR__ . '/../cuyz/valinor',
3737
'aliases' => array(),
@@ -304,9 +304,9 @@
304304
'dev_requirement' => false,
305305
),
306306
'sabberworm/php-css-parser' => array(
307-
'pretty_version' => 'v8.8.0',
308-
'version' => '8.8.0.0',
309-
'reference' => '3de493bdddfd1f051249af725c7e0d2c38fed740',
307+
'pretty_version' => 'v8.9.0',
308+
'version' => '8.9.0.0',
309+
'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9',
310310
'type' => 'library',
311311
'install_path' => __DIR__ . '/../sabberworm/php-css-parser',
312312
'aliases' => array(),

wcfsetup/install/files/lib/system/api/cuyz/valinor/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "^10.5",
24-
"infection/infection": "^0.27",
24+
"infection/infection": "^0.29",
2525
"phpstan/phpstan": "^2.0",
2626
"phpstan/phpstan-strict-rules": "^2.0",
2727
"phpstan/phpstan-phpunit": "^2.0",
2828
"friendsofphp/php-cs-fixer": "^3.4",
2929
"marcocesarato/php-conventional-changelog": "^1.12",
30-
"vimeo/psalm": "^5.0",
30+
"vimeo/psalm": "^6.0",
3131
"mikey179/vfsstream": "^1.6.10",
3232
"rector/rector": "^2.0",
3333
"phpbench/phpbench": "^1.3"

wcfsetup/install/files/lib/system/api/cuyz/valinor/src/Compiler/Native/ValueNode.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
use CuyZ\Valinor\Compiler\Compiler;
88
use CuyZ\Valinor\Compiler\Node;
99

10-
use function current;
1110
use function is_array;
12-
use function key;
1311
use function var_export;
1412

1513
/** @internal */
@@ -30,14 +28,13 @@ private function compileValue(mixed $value, Compiler $compiler): Compiler
3028
if (is_array($value)) {
3129
$compiler = $compiler->write('[');
3230

33-
while (key($value) !== null) {
34-
$compiler = $compiler->write(var_export(key($value), true) . ' => ');
35-
$compiler = $this->compileValue(current($value), $compiler);
31+
$i = 0;
32+
$numItems = count($value);
33+
foreach ($value as $key => $item) {
34+
$compiler = $compiler->write(var_export($key, true) . ' => ');
35+
$compiler = $this->compileValue($item, $compiler);
3636

37-
next($value);
38-
39-
// @phpstan-ignore notIdentical.alwaysTrue (calling `next($value)` is not detected properly by PHPStan)
40-
if (key($value) !== null) {
37+
if (++$i !== $numItems) {
4138
$compiler = $compiler->write(', ');
4239
}
4340
}

wcfsetup/install/files/lib/system/api/cuyz/valinor/src/Library/Settings.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ final class Settings
4747
/** @var non-empty-list<non-empty-string> */
4848
public array $supportedDateFormats = self::DEFAULT_SUPPORTED_DATETIME_FORMATS;
4949

50-
public bool $enableFlexibleCasting = false;
50+
public bool $allowScalarValueCasting = false;
51+
52+
public bool $allowNonSequentialList = false;
53+
54+
public bool $allowUndefinedValues = false;
5155

5256
public bool $allowSuperfluousKeys = false;
5357

@@ -111,7 +115,9 @@ public function hash(): string
111115
implode('', array_map($this->callableSignature(...), $this->customConstructors)),
112116
implode('', array_map($this->callableSignature(...), $this->valueModifier)),
113117
$this->supportedDateFormats,
114-
$this->enableFlexibleCasting,
118+
$this->allowScalarValueCasting,
119+
$this->allowNonSequentialList,
120+
$this->allowUndefinedValues,
115121
$this->allowSuperfluousKeys,
116122
$this->allowPermissiveTypes,
117123
$this->callableSignature($this->exceptionFilter),

wcfsetup/install/files/lib/system/api/cuyz/valinor/src/Mapper/Tree/Builder/ArrayNodeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function build(Shell $shell, RootNodeBuilder $rootBuilder): TreeNode
2828

2929
assert($type instanceof ArrayType || $type instanceof NonEmptyArrayType || $type instanceof IterableType);
3030

31-
if ($shell->enableFlexibleCasting() && $value === null) {
31+
if ($shell->allowUndefinedValues() && $value === null) {
3232
return TreeNode::branch($shell, [], []);
3333
}
3434

0 commit comments

Comments
 (0)