8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cdcb0 commit 953a383Copy full SHA for 953a383
src/Symfony/Component/DomCrawler/FormFieldRegistry.php
@@ -207,16 +207,17 @@ private function getSegments($name)
207
if (preg_match('/^(?P<base>[^[]+)(?P<extra>(\[.*)|$)/', $name, $m)) {
208
$segments = array($m['base']);
209
while (!empty($m['extra'])) {
210
- if (preg_match('/^\[(?P<segment>.*?)\](?P<extra>.*)$/', $m['extra'], $m)) {
+ $extra = $m['extra'];
211
+ if (preg_match('/^\[(?P<segment>.*?)\](?P<extra>.*)$/', $extra, $m)) {
212
$segments[] = $m['segment'];
213
} else {
- throw new \InvalidArgumentException(sprintf('Malformed field path "%s"', $name));
214
+ $segments[] = $extra;
215
}
216
217
218
return $segments;
219
220
221
+ return [$name];
222
223
0 commit comments