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

ReflectionProperty::hasDefaultValue should return bool, not mixed #8580

Closed
vudaltsov opened this issue Oct 13, 2022 · 2 comments
Closed

ReflectionProperty::hasDefaultValue should return bool, not mixed #8580

vudaltsov opened this issue Oct 13, 2022 · 2 comments

Comments

@vudaltsov
Copy link
Contributor

https://psalm.dev/r/5583cb8356

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/5583cb8356
<?php

$_hasDefault = (new \ReflectionProperty('', ''))->hasDefaultValue();
/** @psalm-trace $_hasDefault */
Psalm output (using commit bb9aabe):

INFO: Trace - 4:33 - $_hasDefault: mixed

@vudaltsov
Copy link
Contributor Author

Duplicates #7810.

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

No branches or pull requests

1 participant