Skip to content

Commit 2c11ada

Browse files
committed
Update comment
1 parent 65e4bb1 commit 2c11ada

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Annotation/AbstractWebContextParam.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Ray\WebContextParam\Annotation;
44

55
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
6-
use function is_array;
7-
use function is_string;
86

97
abstract class AbstractWebContextParam implements NamedArgumentConstructorAnnotation
108
{
@@ -23,13 +21,13 @@ abstract class AbstractWebContextParam implements NamedArgumentConstructorAnnota
2321
/**
2422
* Parameter(Variable) name
2523
*
24+
* This parameter is used to specify a parameter from a method in PHP7,
25+
* and is not needed when attributing to a parameter in PHP8.
26+
*
2627
* @var string
2728
*/
2829
public $param;
2930

30-
/**
31-
* @param string|array{key?: string, param?: string} $values
32-
*/
3331
public function __construct(string $key = '', string $param = '')
3432
{
3533
$this->key = $key;

0 commit comments

Comments
 (0)