Skip to content

Commit

Permalink
Corrected return type for getProperties(), getConstants() and `ge…
Browse files Browse the repository at this point in the history
…tMethods()` methods of the `Class` class as actual implementation returned keyed object rather than array.

[Issue glayzzle#27](glayzzle#27)
  • Loading branch information
Dan Stevens committed Aug 16, 2019
1 parent 547febd commit d887cc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d887cc0

Please sign in to comment.