Skip to content

Commit b823864

Browse files
committed
Fix and make reflection arginfo stubs more specific
1 parent 8a88f72 commit b823864

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ext/reflection/reflection.stub.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class ReflectionException extends Exception
66

77
class Reflection
88
{
9-
/** @return array */
9+
/** @return string[] */
1010
public static function getModifierNames(int $modifiers) {}
1111

1212
public static function export(Reflector $reflector, bool $return = false) {}
@@ -43,7 +43,7 @@ public function isGenerator() {}
4343
/** @return bool */
4444
public function isVariadic() {}
4545

46-
/** @return ?Closure */
46+
/** @return ?object */
4747
public function getClosureThis() {}
4848

4949
/** @return ?ReflectionClass */
@@ -76,7 +76,7 @@ public function getNumberOfParameters() {}
7676
/** @return int */
7777
public function getNumberOfRequiredParameters() {}
7878

79-
/** @return array */
79+
/** @return ReflectionParameter[] */
8080
public function getParameters() {}
8181

8282
/** @return string|false */
@@ -247,7 +247,7 @@ public function hasMethod(string $name) {}
247247
/** @return ReflectionMethod */
248248
public function getMethod(string $name) {}
249249

250-
/** @return array */
250+
/** @return ReflectionMethod[] */
251251
public function getMethods(?int $filter = null) {}
252252

253253
/** @return bool */
@@ -256,7 +256,7 @@ public function hasProperty(string $name) {}
256256
/** @return ReflectionProperty */
257257
public function getProperty(string $name) {}
258258

259-
/** @return array */
259+
/** @return ReflectionProperty[] */
260260
public function getProperties(?int $filter = null) {}
261261

262262
/** @return bool */
@@ -265,30 +265,30 @@ public function hasConstant(string $name) {}
265265
/** @return ?array */
266266
public function getConstants() {}
267267

268-
/** @return array */
268+
/** @return ReflectionClassConstant[] */
269269
public function getReflectionConstants() {}
270270

271271
public function getConstant(string $name) {}
272272

273273
/** @return ReflectionClassConstant|false */
274274
public function getReflectionConstant(string $name) {}
275275

276-
/** @return array */
276+
/** @return ReflectionClass[] */
277277
public function getInterfaces() {}
278278

279-
/** @return array */
279+
/** @return string[] */
280280
public function getInterfaceNames() {}
281281

282282
/** @return bool */
283283
public function isInterface() {}
284284

285-
/** @return array */
285+
/** @return ReflectionClass[] */
286286
public function getTraits() {}
287287

288-
/** @return array */
288+
/** @return string[] */
289289
public function getTraitNames() {}
290290

291-
/** @return array */
291+
/** @return string[] */
292292
public function getTraitAliases() {}
293293

294294
/** @return bool */
@@ -569,7 +569,7 @@ public function getName() {}
569569
/** @return ?string */
570570
public function getVersion() {}
571571

572-
/** @return array */
572+
/** @return ReflectionFunction[] */
573573
public function getFunctions() {}
574574

575575
/** @return array */
@@ -578,10 +578,10 @@ public function getConstants() {}
578578
/** @return array */
579579
public function getINIEntries() {}
580580

581-
/** @return array */
581+
/** @return ReflectionClass[] */
582582
public function getClasses() {}
583583

584-
/** @return array */
584+
/** @return string[] */
585585
public function getClassNames() {}
586586

587587
/** @return array */

0 commit comments

Comments
 (0)