You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: src/RequirementCollection.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText
73
73
* Adds a mandatory requirement in form of a PHP configuration option.
74
74
*
75
75
* @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,
77
77
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
78
78
* @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
79
79
* 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
91
91
* Adds an optional recommendation in form of a PHP configuration option.
92
92
*
93
93
* @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,
95
95
* or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement
96
96
* @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false.
97
97
* This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin.
0 commit comments