Skip to content

Conversation

@melkamar
Copy link

@melkamar melkamar commented Dec 2, 2020

The \class_implements() function may return an array or false when it fails

Based on phpstan/phpstan#4172

The \class_implements() function may return an array or false when it fails

Based on phpstan/phpstan#4172
@ondrejmirtes
Copy link
Member

Could you also update class_parents and class_uses?

@melkamar
Copy link
Author

melkamar commented Dec 2, 2020

Done. Do I need to squash the commits or can you do that when accepting the PR?

@ondrejmirtes
Copy link
Member

Now handling in PHPStan itself needs to be fixed :) It's fine, I can squash it before merging.

'class_implements' => ['array<string,string>', 'what'=>'object|string', 'autoload='=>'bool'],
'class_parents' => ['array<string,class-string>', 'instance'=>'object|string', 'autoload='=>'bool'],
'class_uses' => ['array<string,string>', 'what'=>'object|string', 'autoload='=>'bool'],
'class_implements' => ['array<string,string>|false', 'what'=>'object|string', 'autoload='=>'bool'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is a interface also a class-string which can be used instead of string ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@ondrejmirtes ondrejmirtes force-pushed the master branch 3 times, most recently from d45166a to 3526237 Compare December 12, 2020 10:56
@ondrejmirtes
Copy link
Member

Already done on master, but thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants