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

Psalter unable to infer all constants #8690

Open
kkmuffme opened this issue Nov 9, 2022 · 1 comment
Open

Psalter unable to infer all constants #8690

kkmuffme opened this issue Nov 9, 2022 · 1 comment

Comments

@kkmuffme
Copy link
Contributor

kkmuffme commented Nov 9, 2022

https://psalm.dev/r/53d182ebc0

Psalm correctly infers the type for constants

Psalter always has $const_type as NULL for constants from reflection (maybe for others too)

Follow-up to #8682

@psalm-github-bot
Copy link

I found these snippets:

https://psalm.dev/r/53d182ebc0
<?php

$a = PHP_VERSION_ID;
/** @psalm-trace $a */;
Psalm output (using commit 0cd1f13):

INFO: Trace - 4:23 - $a: int<1, max>

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