Skip to content

Commit ae59c9b

Browse files
committed
Updated Rector to commit 014b976b1989d40af977ba95bddf8bd63bd6eb94
rectorphp/rector-src@014b976 [CodeQuality] Skip used by other property hooks on InlineConstructorDefaultToPropertyRector (#7920)
1 parent e61e395 commit ae59c9b

5 files changed

Lines changed: 53 additions & 18 deletions

File tree

vendor/composer/installed.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,12 +1884,12 @@
18841884
"source": {
18851885
"type": "git",
18861886
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
1887-
"reference": "6f8031094466a0fb748524a8ba12a944d16579f7"
1887+
"reference": "aa281cb4f5c3b19bc87e50b52583d1e8bc534ad5"
18881888
},
18891889
"dist": {
18901890
"type": "zip",
1891-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/6f8031094466a0fb748524a8ba12a944d16579f7",
1892-
"reference": "6f8031094466a0fb748524a8ba12a944d16579f7",
1891+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/aa281cb4f5c3b19bc87e50b52583d1e8bc534ad5",
1892+
"reference": "aa281cb4f5c3b19bc87e50b52583d1e8bc534ad5",
18931893
"shasum": ""
18941894
},
18951895
"require": {
@@ -1923,7 +1923,7 @@
19231923
"tomasvotruba\/unused-public": "^2.2",
19241924
"tracy\/tracy": "^2.11"
19251925
},
1926-
"time": "2026-03-06T15:13:30+00:00",
1926+
"time": "2026-03-07T18:05:35+00:00",
19271927
"default-branch": true,
19281928
"type": "rector-extension",
19291929
"extra": {
@@ -2020,17 +2020,17 @@
20202020
},
20212021
{
20222022
"name": "symfony\/console",
2023-
"version": "v6.4.34",
2024-
"version_normalized": "6.4.34.0",
2023+
"version": "v6.4.35",
2024+
"version_normalized": "6.4.35.0",
20252025
"source": {
20262026
"type": "git",
20272027
"url": "https:\/\/github.com\/symfony\/console.git",
2028-
"reference": "7b1f1c37eff5910ddda2831345467e593a5120ad"
2028+
"reference": "49257c96304c508223815ee965c251e7c79e614e"
20292029
},
20302030
"dist": {
20312031
"type": "zip",
2032-
"url": "https:\/\/api.github.com\/repos\/symfony\/console\/zipball\/7b1f1c37eff5910ddda2831345467e593a5120ad",
2033-
"reference": "7b1f1c37eff5910ddda2831345467e593a5120ad",
2032+
"url": "https:\/\/api.github.com\/repos\/symfony\/console\/zipball\/49257c96304c508223815ee965c251e7c79e614e",
2033+
"reference": "49257c96304c508223815ee965c251e7c79e614e",
20342034
"shasum": ""
20352035
},
20362036
"require": {
@@ -2063,7 +2063,7 @@
20632063
"symfony\/stopwatch": "^5.4|^6.0|^7.0",
20642064
"symfony\/var-dumper": "^5.4|^6.0|^7.0"
20652065
},
2066-
"time": "2026-02-23T15:42:15+00:00",
2066+
"time": "2026-03-06T13:31:08+00:00",
20672067
"type": "library",
20682068
"installation-source": "dist",
20692069
"autoload": {
@@ -2097,7 +2097,7 @@
20972097
"terminal"
20982098
],
20992099
"support": {
2100-
"source": "https:\/\/github.com\/symfony\/console\/tree\/v6.4.34"
2100+
"source": "https:\/\/github.com\/symfony\/console\/tree\/v6.4.35"
21012101
},
21022102
"funding": [
21032103
{

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/rector/extension-installer/src/GeneratedConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
final class GeneratedConfig
1111
{
12-
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 7da017c'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 8c5e9e1'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 1aedbbc'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 6f80310'));
12+
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 7da017c'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 8c5e9e1'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 1aedbbc'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main aa281cb'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-symfony/rules/Symfony73/Rector/Class_/ConstraintOptionsToNamedArgumentsRector.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,24 @@ public function refactor(Node $node): ?Node
7575
return null;
7676
}
7777
$args = $node->getArgs();
78-
if ($className === SymfonyClass::SYMFONY_VALIDATOR_CONSTRAINTS_COLLECTION && count($args) === 1 && $args[0]->value instanceof Array_) {
78+
if ($className === SymfonyClass::SYMFONY_VALIDATOR_CONSTRAINTS_COLLECTION && $args[0]->value instanceof Array_) {
7979
if ($args[0]->name instanceof Identifier) {
8080
return null;
8181
}
8282
$args[0]->name = new Identifier('fields');
83+
foreach ($args as $key => $arg) {
84+
if (!$arg->name instanceof Identifier) {
85+
continue;
86+
}
87+
if ($arg->name->toString() !== 'allowExtraFields') {
88+
continue;
89+
}
90+
if (!$this->valueResolver->isFalse($arg->value)) {
91+
continue;
92+
}
93+
unset($args[$key]);
94+
}
95+
$node->args = array_values($args);
8396
return $node;
8497
}
8598
$array = $node->args[0]->value;

vendor/symfony/console/Output/ConsoleOutput.php

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,43 @@ private function isRunningOS400(): bool
120120
*/
121121
private function openOutputStream()
122122
{
123+
static $stdout;
124+
if ($stdout) {
125+
return $stdout;
126+
}
123127
if (!$this->hasStdoutSupport()) {
124-
return fopen('php://output', 'w');
128+
return $stdout = fopen('php://output', 'w');
125129
}
126130
// Use STDOUT when possible to prevent from opening too many file descriptors
127-
return \defined('STDOUT') ? \STDOUT : (@fopen('php://stdout', 'w') ?: fopen('php://output', 'w'));
131+
if (!\defined('STDOUT')) {
132+
return $stdout = @fopen('php://stdout', 'w') ?: fopen('php://output', 'w');
133+
}
134+
// On Windows, STDOUT is opened in text mode; reopen in binary mode to prevent \n to \r\n conversion
135+
if ('\\' === \DIRECTORY_SEPARATOR) {
136+
return $stdout = @fopen('php://stdout', 'w') ?: \STDOUT;
137+
}
138+
return $stdout = \STDOUT;
128139
}
129140
/**
130141
* @return resource
131142
*/
132143
private function openErrorStream()
133144
{
145+
static $stderr;
146+
if ($stderr) {
147+
return $stderr;
148+
}
134149
if (!$this->hasStderrSupport()) {
135-
return fopen('php://output', 'w');
150+
return $stderr = fopen('php://output', 'w');
136151
}
137152
// Use STDERR when possible to prevent from opening too many file descriptors
138-
return \defined('STDERR') ? \STDERR : (@fopen('php://stderr', 'w') ?: fopen('php://output', 'w'));
153+
if (!\defined('STDERR')) {
154+
return $stderr = @fopen('php://stderr', 'w') ?: fopen('php://output', 'w');
155+
}
156+
// On Windows, STDERR is opened in text mode; reopen in binary mode to prevent \n → \r\n conversion
157+
if ('\\' === \DIRECTORY_SEPARATOR) {
158+
return $stderr = @fopen('php://stderr', 'w') ?: \STDERR;
159+
}
160+
return $stderr ??= \STDERR;
139161
}
140162
}

0 commit comments

Comments
 (0)