Skip to content

Commit 8b5c23e

Browse files
authored
Add false to return types of class_implements()
The \class_implements() function may return an array or false when it fails Based on phpstan/phpstan#4172
1 parent 5d4761c commit 8b5c23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@
949949
'chunk_split' => ['string', 'str'=>'string', 'chunklen='=>'int', 'ending='=>'string'],
950950
'class_alias' => ['bool', 'user_class_name'=>'string', 'alias_name'=>'string', 'autoload='=>'bool'],
951951
'class_exists' => ['bool', 'classname'=>'string', 'autoload='=>'bool'],
952-
'class_implements' => ['array<string,string>', 'what'=>'object|string', 'autoload='=>'bool'],
952+
'class_implements' => ['array<string,string>|false', 'what'=>'object|string', 'autoload='=>'bool'],
953953
'class_parents' => ['array<string,class-string>', 'instance'=>'object|string', 'autoload='=>'bool'],
954954
'class_uses' => ['array<string,string>', 'what'=>'object|string', 'autoload='=>'bool'],
955955
'classkit_import' => ['array', 'filename'=>'string'],

0 commit comments

Comments
 (0)