Skip to content

Commit

Permalink
Fix constants map generic doc comments (#1407)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Mar 21, 2024
1 parent da1efdb commit 4f00173
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions library/Mockery/Configuration.php
Expand Up @@ -54,7 +54,7 @@ class Configuration
*
* e.g. ['class' => ['MY_CONST' => 123, 'OTHER_CONST' => 'foo']]
*
* @var array<class-string,array<string,scalar>>
* @var array<class-string,array<string,array<scalar>|scalar>>
*/
protected $_constantsMap = [];

Expand Down Expand Up @@ -167,7 +167,7 @@ public function enableReflectionCache()
/**
* Get the map of constants to be used in the mock generator
*
* @return array<class-string,array<string,scalar>>
* @return array<class-string,array<string,array<scalar>|scalar>>
*/
public function getConstantsMap()
{
Expand Down Expand Up @@ -324,7 +324,9 @@ public function resetInternalClassMethodParamMaps()
/**
* Set a map of constants to be used in the mock generator
*
* @param array<class-string,array<string,scalar>> $map e.g. ['MyClass' => ['MY_CONST' => 123, 'OTHER_CONST' => 'foo']]
* e.g. ['MyClass' => ['MY_CONST' => 123, 'ARRAY_CONST' => ['foo', 'bar']]]
*
* @param array<class-string,array<string,array<scalar>|scalar>> $map
*
* @return void
*/
Expand Down

0 comments on commit 4f00173

Please sign in to comment.