Skip to content

Commit f7e6cff

Browse files
authored
Merge pull request #7879 from kenjis/docs-phpdoc-param
docs: fix or remove @param
2 parents defd761 + f34580d commit f7e6cff

File tree

23 files changed

+11
-59
lines changed

23 files changed

+11
-59
lines changed

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public static function init()
177177
* Named options must be in the following formats:
178178
* php index.php user -v --v -name=John --name=John
179179
*
180-
* @param string $prefix
180+
* @param string $prefix You may specify a string with which to prompt the user.
181181
*/
182182
public static function input(?string $prefix = null): string
183183
{

system/Config/Services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ public static function toolbar(?ToolbarConfig $config = null, bool $getShared =
781781
/**
782782
* The URI class provides a way to model and manipulate URIs.
783783
*
784-
* @param string $uri
784+
* @param string|null $uri The URI string
785785
*
786786
* @return URI The current URI if $uri is null.
787787
*/

system/Database/BaseBuilder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ public function where($key, $value = null, ?bool $escape = null)
706706
*
707707
* @param array|RawSql|string $key
708708
* @param mixed $value
709-
* @param bool $escape
710709
*
711710
* @return $this
712711
*/

system/Database/Migration.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ abstract class Migration
4141

4242
/**
4343
* Constructor.
44-
*
45-
* @param Forge $forge
4644
*/
4745
public function __construct(?Forge $forge = null)
4846
{
@@ -53,8 +51,6 @@ public function __construct(?Forge $forge = null)
5351

5452
/**
5553
* Returns the database group name this migration uses.
56-
*
57-
* @return string
5854
*/
5955
public function getDBGroup(): ?string
6056
{

system/Database/Query.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ public function getQuery(): string
167167
* for it's start and end values. If no end value is present, will
168168
* use the current time to determine total duration.
169169
*
170-
* @param float $end
171-
*
172170
* @return $this
173171
*/
174172
public function setDuration(float $start, ?float $end = null)

system/Debug/Toolbar.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,6 @@ protected function roundTo(float $number, int $increments = 5): float
346346
/**
347347
* Prepare for debugging..
348348
*
349-
* @param RequestInterface $request
350-
* @param ResponseInterface $response
351-
*
352349
* @return void
353350
*/
354351
public function prepare(?RequestInterface $request = null, ?ResponseInterface $response = null)

system/Encryption/Exceptions/EncryptionException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ public static function forNoHandlerAvailable(string $handler)
4545
/**
4646
* Thrown when the handler requested is unknown.
4747
*
48-
* @param string $driver
49-
*
5048
* @return static
5149
*/
5250
public static function forUnKnownHandler(?string $driver = null)

system/Entity/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function __construct(?array $data = null)
136136
* properties, using any `setCamelCasedProperty()` methods
137137
* that may or may not exist.
138138
*
139-
* @param array $data
139+
* @param array<string, array|bool|float|int|object|string|null> $data
140140
*
141141
* @return $this
142142
*/

system/Format/Exceptions/FormatException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function forInvalidFormatter(string $class)
3636
* Thrown in JSONFormatter when the json_encode produces
3737
* an error code other than JSON_ERROR_NONE and JSON_ERROR_RECURSION.
3838
*
39-
* @param string $error
39+
* @param string $error The error message
4040
*
4141
* @return static
4242
*/

system/HTTP/URI.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,6 @@ public function setHost(string $str)
778778
/**
779779
* Sets the port portion of the URI.
780780
*
781-
* @param int $port
782-
*
783781
* @return $this
784782
*
785783
* @TODO PSR-7: Should be `withPort($port)`.

0 commit comments

Comments
 (0)