|
@@ -159,7 +159,7 @@ discard block |
|
|
block discarded – undo |
|
159
|
159
|
* |
|
160
|
160
|
* @param string $name The name of the class to get the closure for |
|
161
|
161
|
* @param array $rule The rule to base the instance on |
|
162
|
|
- * @return callable A closure that will create the appropriate object when called |
|
|
162
|
+ * @return \Closure A closure that will create the appropriate object when called |
|
163
|
163
|
*/ |
|
164
|
164
|
private function getClosure($name, array $rule, \ReflectionClass $class) |
|
165
|
165
|
{ |
|
@@ -206,9 +206,9 @@ discard block |
|
|
block discarded – undo |
|
206
|
206
|
/** |
|
207
|
207
|
* Returns a closure that generates arguments for $method based on $rule and any $args passed into the closure |
|
208
|
208
|
* |
|
209
|
|
- * @param ReflectionMethod $method A reflection of the method to inspect |
|
|
209
|
+ * @param \ReflectionMethod $method A reflection of the method to inspect |
|
210
|
210
|
* @param array $rule The ruleset to use in interpreting what the params should be |
|
211
|
|
- * @return callable A closure that uses the cached information to generate the method's arguments |
|
|
211
|
+ * @return \Closure A closure that uses the cached information to generate the method's arguments |
|
212
|
212
|
*/ |
|
213
|
213
|
private function getParams(\ReflectionMethod $method, array $rule) |
|
214
|
214
|
{ |
|
@@ -335,6 +335,7 @@ discard block |
|
|
block discarded – undo |
|
335
|
335
|
|
|
336
|
336
|
/** |
|
337
|
337
|
* |
|
|
338
|
+ * @param string $name |
|
338
|
339
|
*/ |
|
339
|
340
|
private static function normalizeName($name) |
|
340
|
341
|
{ |
Please login to merge, or discard this patch.