@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | /** |
| 209 | 209 | * Create a test treebuilder with a variable node, and init the validation. |
| 210 | 210 | * |
| 211 | - * @return TreeBuilder |
|
| 211 | + * @return \Symfony\Component\Config\Definition\Builder\ExprBuilder |
|
| 212 | 212 | */ |
| 213 | 213 | protected function getTestBuilder() |
| 214 | 214 | { |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | /** |
| 246 | 246 | * Return a closure that will return the given value. |
| 247 | 247 | * |
| 248 | - * @param mixed $val The value that the closure must return |
|
| 248 | + * @param string $val The value that the closure must return |
|
| 249 | 249 | * |
| 250 | 250 | * @return \Closure |
| 251 | 251 | */ |
@@ -208,6 +208,9 @@ |
||
| 208 | 208 | self::assertSame($normalized, $tree->normalize($denormalized)); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | + /** |
|
| 212 | + * @return NodeInterface |
|
| 213 | + */ |
|
| 211 | 214 | private function getNumericKeysTestTree() |
| 212 | 215 | { |
| 213 | 216 | $tb = new TreeBuilder(); |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | $this->removeDirectory($this->directory); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $directory |
|
| 40 | + */ |
|
| 38 | 41 | protected function removeDirectory($directory) |
| 39 | 42 | { |
| 40 | 43 | $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST); |
@@ -216,6 +216,9 @@ |
||
| 216 | 216 | } |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | + /** |
|
| 220 | + * @param boolean $internalErrors |
|
| 221 | + */ |
|
| 219 | 222 | protected static function getXmlErrors($internalErrors) |
| 220 | 223 | { |
| 221 | 224 | $errors = array(); |
@@ -764,7 +764,7 @@ discard block |
||
| 764 | 764 | /** |
| 765 | 765 | * Tries to figure out the terminal dimensions based on the current environment. |
| 766 | 766 | * |
| 767 | - * @return array Array containing width and height |
|
| 767 | + * @return integer[] Array containing width and height |
|
| 768 | 768 | * |
| 769 | 769 | * @deprecated since version 3.2, to be removed in 4.0. Create a Terminal instance instead. |
| 770 | 770 | */ |
@@ -1080,6 +1080,9 @@ discard block |
||
| 1080 | 1080 | return $this; |
| 1081 | 1081 | } |
| 1082 | 1082 | |
| 1083 | + /** |
|
| 1084 | + * @param integer $width |
|
| 1085 | + */ |
|
| 1083 | 1086 | private function splitStringByWidth($string, $width) |
| 1084 | 1087 | { |
| 1085 | 1088 | // str_split is not suitable for multi-byte characters, we should use preg_split to get char array properly. |
@@ -637,7 +637,7 @@ |
||
| 637 | 637 | * |
| 638 | 638 | * @param string $name The helper name |
| 639 | 639 | * |
| 640 | - * @return mixed The helper value |
|
| 640 | + * @return \Symfony\Component\Console\Helper\HelperInterface The helper value |
|
| 641 | 641 | * |
| 642 | 642 | * @throws LogicException if no HelperSet is defined |
| 643 | 643 | * @throws InvalidArgumentException if the helper is not defined |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | * |
| 188 | 188 | * @param string $string |
| 189 | 189 | * |
| 190 | - * @return OutputFormatterStyle|false false if string is not format string |
|
| 190 | + * @return OutputFormatterStyleInterface|null false if string is not format string |
|
| 191 | 191 | */ |
| 192 | 192 | private function createStyleFromString($string) |
| 193 | 193 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @param string|null $foreground The style foreground color name |
| 61 | 61 | * @param string|null $background The style background color name |
| 62 | - * @param array $options The style options |
|
| 62 | + * @param string[] $options The style options |
|
| 63 | 63 | */ |
| 64 | 64 | public function __construct($foreground = null, $background = null, array $options = array()) |
| 65 | 65 | { |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @param Process $process The Process |
| 111 | 111 | * @param callable|null $callback A PHP callable |
| 112 | 112 | * |
| 113 | - * @return callable |
|
| 113 | + * @return \Closure |
|
| 114 | 114 | */ |
| 115 | 115 | public function wrapCallback(OutputInterface $output, Process $process, callable $callback = null) |
| 116 | 116 | { |