From 19062e56a34639ae434726c9c5bbffd3d2a9809b Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Wed, 1 Dec 2021 21:36:13 +0000 Subject: [PATCH] get_class does not return false Technically all functions could return false or null when a wrong parameter is provided, but that was undefined behavour in PHP <8 and should not be relied upon. --- dictionaries/CallMap.php | 2 +- dictionaries/CallMap_historical.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 09935ed1fa5..a28b9b6b304 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -3720,7 +3720,7 @@ 'get_call_stack' => [''], 'get_called_class' => ['class-string'], 'get_cfg_var' => ['string|false', 'option'=>'string'], -'get_class' => ['class-string|false', 'object='=>'object'], +'get_class' => ['class-string', 'object='=>'object'], 'get_class_methods' => ['list|null', 'object_or_class'=>'mixed'], 'get_class_vars' => ['array', 'class'=>'string'], 'get_current_user' => ['string'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index f94981a1e37..bed18a99e39 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -11058,7 +11058,7 @@ 'get_call_stack' => [''], 'get_called_class' => ['class-string'], 'get_cfg_var' => ['string|false', 'option'=>'string'], - 'get_class' => ['class-string|false', 'object='=>'object'], + 'get_class' => ['class-string', 'object='=>'object'], 'get_class_methods' => ['list|null', 'object_or_class'=>'mixed'], 'get_class_vars' => ['array', 'class'=>'string'], 'get_current_user' => ['string'],