Skip to content

Commit 32cb577

Browse files
committed
fixed short array CS in comments
1 parent d46bb0e commit 32cb577

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ public function evaluate($xpath)
626626
*
627627
* Example:
628628
*
629-
* $crawler->filter('h1 a')->extract(array('_text', 'href'));
629+
* $crawler->filter('h1 a')->extract(['_text', 'href']);
630630
*
631631
* @param array $attributes An array of attributes
632632
*

FormFieldRegistry.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function set($name, $value)
133133
/**
134134
* Returns the list of field with their value.
135135
*
136-
* @return FormField[] The list of fields as array((string) Fully qualified name => (mixed) value)
136+
* @return FormField[] The list of fields as [string] Fully qualified name => (mixed) value)
137137
*/
138138
public function all()
139139
{
@@ -167,7 +167,7 @@ private static function create($base, array $values)
167167
* @param string $base The name of the base field
168168
* @param array $output The initial values
169169
*
170-
* @return array The list of fields as array((string) Fully qualified name => (mixed) value)
170+
* @return array The list of fields as [string] Fully qualified name => (mixed) value)
171171
*/
172172
private function walk(array $array, $base = '', array &$output = [])
173173
{
@@ -186,7 +186,7 @@ private function walk(array $array, $base = '', array &$output = [])
186186
/**
187187
* Splits a field name into segments as a web browser would do.
188188
*
189-
* getSegments('base[foo][3][]') = array('base', 'foo, '3', '');
189+
* getSegments('base[foo][3][]') = ['base', 'foo, '3', ''];
190190
*
191191
* @param string $name The name of the field
192192
*

0 commit comments

Comments
 (0)