Skip to content

Commit 2379d86

Browse files
raziel057fabpot
authored andcommitted
CS Fixes - Replaced "array of type" by "Type[]" in PHPDoc block
1 parent b337655 commit 2379d86

File tree

59 files changed

+390
-232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+390
-232
lines changed

src/Symfony/Component/BrowserKit/CookieJar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function updateFromResponse(Response $response, $uri = null)
127127
/**
128128
* Returns not yet expired cookies.
129129
*
130-
* @return array An array of cookies
130+
* @return Cookie[] An array of cookies
131131
*/
132132
public function all()
133133
{

src/Symfony/Component/BrowserKit/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Request
3232
* Constructor.
3333
*
3434
* @param string $uri The request URI
35-
* @param array $method The HTTP method request
35+
* @param string $method The HTTP method request
3636
* @param array $parameters The request parameters
3737
* @param array $files An array of uploaded files
3838
* @param array $cookies An array of cookies

src/Symfony/Component/ClassLoader/ClassCollectionLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private static function writeCacheFile($file, $content)
210210
*
211211
* @param array $classes
212212
*
213-
* @return array An array of sorted \ReflectionClass instances (dependencies added if needed)
213+
* @return \ReflectionClass[] An array of sorted \ReflectionClass instances (dependencies added if needed)
214214
*
215215
* @throws \InvalidArgumentException When a class can't be loaded
216216
*/

src/Symfony/Component/Config/ConfigCache.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Config;
1313

14+
use Symfony\Component\Config\Resource\ResourceInterface;
15+
1416
/**
1517
* ConfigCache manages PHP cache files.
1618
*
@@ -83,8 +85,8 @@ public function isFresh()
8385
/**
8486
* Writes cache.
8587
*
86-
* @param string $content The content to write in the cache
87-
* @param array $metadata An array of ResourceInterface instances
88+
* @param string $content The content to write in the cache
89+
* @param ResourceInterface[] $metadata An array of ResourceInterface instances
8890
*
8991
* @throws \RuntimeException When cache file can't be wrote
9092
*/

src/Symfony/Component/Config/Definition/BaseNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function setAllowOverwrite($allow)
158158
/**
159159
* Sets the closures used for normalization.
160160
*
161-
* @param array $closures An array of Closures used for normalization
161+
* @param \Closure[] $closures An array of Closures used for normalization
162162
*/
163163
public function setNormalizationClosures(array $closures)
164164
{
@@ -168,7 +168,7 @@ public function setNormalizationClosures(array $closures)
168168
/**
169169
* Sets the closures used for final validation.
170170
*
171-
* @param array $closures An array of Closures used for final validation
171+
* @param \Closure[] $closures An array of Closures used for final validation
172172
*/
173173
public function setFinalValidationClosures(array $closures)
174174
{

src/Symfony/Component/Config/Definition/Builder/ExprBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function end()
210210
/**
211211
* Builds the expressions.
212212
*
213-
* @param array $expressions An array of ExprBuilder instances to build
213+
* @param ExprBuilder[] $expressions An array of ExprBuilder instances to build
214214
*
215215
* @return array
216216
*/

src/Symfony/Component/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ public function find($name)
619619
*
620620
* @param string $namespace A namespace name
621621
*
622-
* @return array An array of Command instances
622+
* @return Command[] An array of Command instances
623623
*
624624
* @api
625625
*/
@@ -933,7 +933,7 @@ protected function getDefaultInputDefinition()
933933
/**
934934
* Gets the default commands that should always be available.
935935
*
936-
* @return array An array of default Command instances
936+
* @return Command[] An array of default Command instances
937937
*/
938938
protected function getDefaultCommands()
939939
{

src/Symfony/Component/Console/Formatter/OutputFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public static function escape($text)
4444
/**
4545
* Initializes console output formatter.
4646
*
47-
* @param Boolean $decorated Whether this formatter should actually decorate strings
48-
* @param array $styles Array of "name => FormatterStyle" instances
47+
* @param Boolean $decorated Whether this formatter should actually decorate strings
48+
* @param FormatterStyle[] $styles Array of "name => FormatterStyle" instances
4949
*
5050
* @api
5151
*/

src/Symfony/Component/Console/Input/InputDefinition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function setDefinition(array $definition)
7272
/**
7373
* Sets the InputArgument objects.
7474
*
75-
* @param array $arguments An array of InputArgument objects
75+
* @param InputArgument[] $arguments An array of InputArgument objects
7676
*
7777
* @api
7878
*/
@@ -178,7 +178,7 @@ public function hasArgument($name)
178178
/**
179179
* Gets the array of InputArgument objects.
180180
*
181-
* @return array An array of InputArgument objects
181+
* @return InputArgument[] An array of InputArgument objects
182182
*
183183
* @api
184184
*/
@@ -225,7 +225,7 @@ public function getArgumentDefaults()
225225
/**
226226
* Sets the InputOption objects.
227227
*
228-
* @param array $options An array of InputOption objects
228+
* @param InputOption[] $options An array of InputOption objects
229229
*
230230
* @api
231231
*/
@@ -310,7 +310,7 @@ public function hasOption($name)
310310
/**
311311
* Gets the array of InputOption objects.
312312
*
313-
* @return array An array of InputOption objects
313+
* @return InputOption[] An array of InputOption objects
314314
*
315315
* @api
316316
*/

src/Symfony/Component/CssSelector/Node/OrNode.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
*/
2424
class OrNode implements NodeInterface
2525
{
26+
/**
27+
* @var NodeInterface[]
28+
*/
2629
protected $items;
2730

2831
/**
2932
* Constructor.
3033
*
31-
* @param array $items An array of NodeInterface objects
34+
* @param NodeInterface[] $items An array of NodeInterface objects
3235
*/
3336
public function __construct($items)
3437
{

0 commit comments

Comments
 (0)