From 95f8930d993eda7b43ed3dada7ac69fe983aa220 Mon Sep 17 00:00:00 2001 From: Quentin Dreyer Date: Wed, 6 Nov 2019 14:57:04 +0100 Subject: [PATCH] feat: handle specified array type hint https://docs.phpdoc.org/references/phpdoc/types.html#arrays --- src/Property.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Property.ts b/src/Property.ts index 3014d83..489553d 100644 --- a/src/Property.ts +++ b/src/Property.ts @@ -150,6 +150,10 @@ export default class Property { setType(type : string) { this.type = type; + + if (type.indexOf('[]') > 0) { + type = 'array'; + } if (this.isValidTypeHint(type)) { this.typeHint = type;