Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functionMap: a bit more precise get_defined_constants #3537

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

janedbal
Copy link
Contributor

@janedbal janedbal commented Oct 4, 2024

No description provided.

@ondrejmirtes ondrejmirtes merged commit 4c5e44f into phpstan:1.12.x Oct 4, 2024
455 of 500 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@@ -3303,7 +3303,7 @@
'get_declared_classes' => ['list<class-string>'],
'get_declared_interfaces' => ['list<interface-string>'],
'get_declared_traits' => ['list<trait-string>'],
'get_defined_constants' => ['array', 'categorize='=>'bool'],
'get_defined_constants' => ['array<string, mixed>', 'categorize='=>'bool'],
'get_defined_functions' => ['array{internal:non-empty-list<callable-string>,user:list<callable-string>}', 'exclude_disabled='=>'bool'],
'get_defined_vars' => ['array'],
Copy link
Contributor

Choose a reason for hiding this comment

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

same here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

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.

None yet

3 participants