10000 minor #39 Fix PHPDoc in RequirementCollection (gnutix) · symfony/requirements-checker@1130097 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1130097

Browse files
committed
minor #39 Fix PHPDoc in RequirementCollection (gnutix)
This PR was merged into the 1.1.x-dev branch. Discussion ---------- Fix PHPDoc in RequirementCollection Prevents warnings from PHPStan like : ``` Parameter #2 $evaluation of method Symfony\Requirements\RequirementCollection::addPhpConfigRequirement() expects bool|Symfony\Requirements\callback, Closure() given. ``` Commits ------- 423cc71 Fix PHPDoc in RequirementCollection
2 parents 9919781 + 423cc71 commit 1130097

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RequirementCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText
7373
* Adds a mandatory requirement in form of a PHP configuration option.
7474
*
7575
* @param string $cfgName The configuration name used for ini_get()
76-
* @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false,
76+
* @param bool|callable $evaluation Either a boolean indicating whether the configuration should evaluate to true or false,
7777
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
7878
* @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
7979
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
@@ -91,7 +91,7 @@ public function addPhpConfigRequirement($cfgName, $evaluation, $approveCfgAbsenc
9191
* Adds an optional recommendation in form of a PHP configuration option.
9292
*
9393
* @param string $cfgName The configuration name used for ini_get()
94-
* @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false,
94+
* @param bool|callable $evaluation Either a boolean indicating whether the configuration should evaluate to true or false,
9595
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
9696
* @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
9797
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.

0 commit comments

Comments
 (0)
0