Completed
Pull Request — master (#12303)
by
unknown
09:44
created
src/Console/CommandRunner.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      * - Trigger the `Console.buildCommands` event of auto-wiring plugins.
104 104
      * - Run the requested command.
105 105
      *
106
-     * @param array $argv The arguments from the CLI environment.
106
+     * @param string[] $argv The arguments from the CLI environment.
107 107
      * @param \Cake\Console\ConsoleIo $io The ConsoleIo instance. Used primarily for testing.
108 108
      * @return int The exit code of the command.
109 109
      * @throws \RuntimeException
Please login to merge, or discard this patch.
src/Collection/CollectionTrait.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -249,6 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
     /**
251 251
      * {@inheritDoc}
252
+     * @param \Closure $callback
252 253
      */
253 254
     public function groupBy($callback)
254 255
     {
@@ -263,6 +264,7 @@  discard block
 block discarded – undo
263 264
 
264 265
     /**
265 266
      * {@inheritDoc}
267
+     * @param string $callback
266 268
      */
267 269
     public function indexBy($callback)
268 270
     {
@@ -405,6 +407,9 @@  discard block
 block discarded – undo
405 407
 
406 408
     /**
407 409
      * {@inheritDoc}
410
+     * @param string $keyPath
411
+     * @param string $valuePath
412
+     * @param string $groupPath
408 413
      */
409 414
     public function combine($keyPath, $valuePath, $groupPath = null)
410 415
     {
Please login to merge, or discard this patch.
src/Routing/RouteBuilder.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
     /**
725 725
      * Create a route object, or return the provided object.
726 726
      *
727
-     * @param string|\Cake\Routing\Route\Route $route The route template or route object.
727
+     * @param string $route The route template or route object.
728 728
      * @param array $defaults Default parameters.
729 729
      * @param array $options Additional options parameters.
730 730
      * @return \Cake\Routing\Route\Route
@@ -985,6 +985,7 @@  discard block
 block discarded – undo
985 985
      * Requires middleware to be registered via `registerMiddleware()`
986 986
      *
987 987
      * @param string ...$names The names of the middleware to apply to the current scope.
988
+     * @param string[] $names
988 989
      * @return $this
989 990
      * @see \Cake\Routing\RouteCollection::addMiddlewareToScope()
990 991
      */
Please login to merge, or discard this patch.
src/View/Helper/UrlHelper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * Depending on options passed provides full URL with domain name. Also calls
87 87
      * `Helper::assetTimestamp()` to add timestamp to local files.
88 88
      *
89
-     * @param string|array $path Path string or URL array
89
+     * @param string $path Path string or URL array
90 90
      * @param array $options Options array. Possible keys:
91 91
      *   `fullBase` Return full URL with domain name
92 92
      *   `pathPrefix` Path prefix for relative URLs
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * Depending on options passed provides full URL with domain name. Also calls
109 109
      * `Helper::assetTimestamp()` to add timestamp to local files.
110 110
      *
111
-     * @param string|array $path Path string or URL array
111
+     * @param string $path Path string or URL array
112 112
      * @param array $options Options array. Possible keys:
113 113
      *   `fullBase` Return full URL with domain name
114 114
      *   `pathPrefix` Path prefix for relative URLs
Please login to merge, or discard this patch.
src/TestSuite/ConsoleIntegrationTestCase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
      * Creates an $argv array from a command string
252 252
      *
253 253
      * @param string $command Command string
254
-     * @return array
254
+     * @return string[]
255 255
      */
256 256
     protected function _commandStringToArgs($command)
257 257
     {
Please login to merge, or discard this patch.
src/View/View.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
      *
785 785
      * @param string $content Content to render in a template, wrapped by the surrounding layout.
786 786
      * @param string|null $layout Layout name
787
-     * @return mixed Rendered output, or false on error
787
+     * @return string Rendered output, or false on error
788 788
      * @throws \Cake\Core\Exception\Exception if there is an error in the view.
789 789
      * @triggers View.beforeLayout $this, [$layoutFileName]
790 790
      * @triggers View.afterLayout $this, [$layoutFileName]
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
      * Appending to a new block will create the block.
891 891
      *
892 892
      * @param string $name Name of the block
893
-     * @param mixed $value The content for the block. Value will be type cast
893
+     * @param string|null $value The content for the block. Value will be type cast
894 894
      *   to string.
895 895
      * @return $this
896 896
      * @see \Cake\View\ViewBlock::concat()
Please login to merge, or discard this patch.
src/I18n/Number.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
     /**
241 241
      * Getter/setter for default currency
242 242
      *
243
-     * @param string|bool|null $currency Default currency string to be used by currency()
243
+     * @param string|boolean $currency Default currency string to be used by currency()
244 244
      * if $currency argument is not provided. If boolean false is passed, it will clear the
245 245
      * currently stored value
246 246
      * @return string|null Currency
Please login to merge, or discard this patch.
src/Network/Socket.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@
 block discarded – undo
359 359
      * Please code respectively to be future proof.
360 360
      *
361 361
      * @param int $length Optional buffer length to read; defaults to 1024
362
-     * @return mixed Socket data
362
+     * @return false|string Socket data
363 363
      */
364 364
     public function read($length = 1024)
365 365
     {
Please login to merge, or discard this patch.
src/ORM/Association.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
      * Sets the name of the field representing the binding field with the target table.
502 502
      * When not manually specified the primary key of the owning side table is used.
503 503
      *
504
-     * @param string|array $key the table field or fields to be used to link both tables together
504
+     * @param string $key the table field or fields to be used to link both tables together
505 505
      * @return $this
506 506
      */
507 507
     public function setBindingKey($key)
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
     /**
561 561
      * Sets the name of the field representing the foreign key to the target table.
562 562
      *
563
-     * @param string|array $key the key or keys to be used to link both tables together
563
+     * @param string $key the key or keys to be used to link both tables together
564 564
      * @return $this
565 565
      */
566 566
     public function setForeignKey($key)
Please login to merge, or discard this patch.