Skip to content

Is "scalar" an official type? #4507

Answered by ondrejmirtes
herndlm asked this question in Support
Discussion options

You must be logged in to vote

I guess that some supported types can be missing from https://phpstan.org/writing-php-code/phpdoc-types because they appear in the wild but I don't find them valuable myself. Feel free to update the docs (there's an "Edit" button at the bottom).

For the actually supported types you can look in the source code: https://github.com/phpstan/phpstan-src/blob/ec4e7edfe622c24a5e037d3a088ed8175275737e/src/PhpDoc/TypeNodeResolver.php#L129-L230

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@herndlm
Comment options

Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants