From ef37f775a5dff459634c2773fc1852fd01a8456b Mon Sep 17 00:00:00 2001 From: Dan Stevens Date: Fri, 16 Aug 2019 16:47:55 +0100 Subject: [PATCH] Corrected return type for `getProperties()`, `getConstants()` and `getMethods()` methods of the `Class` class as actual implementation returned keyed object rather than array. [Issue #27](https://github.com/glayzzle/php-reflection/issues/27) --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index af514ca..d98beba 100644 --- a/index.d.ts +++ b/index.d.ts @@ -232,9 +232,9 @@ declare module "php-reflection" { isFinal: Boolean; getExtends(): Class; getImplements(): Interface[]; - getProperties(includeParents?: boolean): Property[]; - getConstants(includeParents?: boolean): Constant[]; - getMethods(includeParents?: boolean): Method[]; + getProperties(includeParents?: boolean): {[name: string]: Property}; + getConstants(includeParents?: boolean): {[name: string]: Constant}; + getMethods(includeParents?: boolean): {[name: string]: Method}; } export class Trait extends Node {