From 0d1e8931518b39f9589be1be46aed049770a66df Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 8 Apr 2020 15:04:49 +0200 Subject: [PATCH] Added `ReflectionProperty#getType()` to psalm type stubs for PHP 7.4+ (#3093) --- src/Psalm/Internal/CallMap.php | 1 + src/Psalm/Internal/CallMap_74_delta.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Psalm/Internal/CallMap.php b/src/Psalm/Internal/CallMap.php index 0ac0bc06d..d62bdebeb 100644 --- a/src/Psalm/Internal/CallMap.php +++ b/src/Psalm/Internal/CallMap.php @@ -11446,6 +11446,7 @@ return [ 'ReflectionProperty::getDocComment' => ['string|false'], 'ReflectionProperty::getModifiers' => ['int'], 'ReflectionProperty::getName' => ['string'], +'ReflectionProperty::getType' => ['?ReflectionType'], 'ReflectionProperty::getValue' => ['mixed', 'object='=>'object'], 'ReflectionProperty::isDefault' => ['bool'], 'ReflectionProperty::isPrivate' => ['bool'], diff --git a/src/Psalm/Internal/CallMap_74_delta.php b/src/Psalm/Internal/CallMap_74_delta.php index 981d57b6f..d8ecd9f2a 100644 --- a/src/Psalm/Internal/CallMap_74_delta.php +++ b/src/Psalm/Internal/CallMap_74_delta.php @@ -17,6 +17,7 @@ return [ 'new' => [ 'password_hash' => ['string|null', 'password'=>'string', 'algo'=>'int|string|null', 'options='=>'array'], 'password_needs_rehash' => ['bool', 'hash'=>'string', 'algo'=>'int|string|null', 'options='=>'array'], + 'ReflectionProperty::getType' => ['?ReflectionType'], ], 'old' => [ 'password_hash' => ['string|false', 'password'=>'string', 'algo'=>'int', 'options='=>'array'],