René's URL Explorer Experiment


Title: PHPDoc Types | PHPStan

Open Graph Title: PHPDoc Types

X Title: PHPDoc Types

X: @phpstan

direct link

Domain: phpstan.org

og:imagehttps://phpstan.org/images/logo-big.png
twitter:imagehttps://phpstan.org/images/logo-big.png
twitter:cardsummary_large_image
twitter:creator@ondrejmirtes

Links:

https://phpstan.org/
https://phpstan.org/
Home https://phpstan.org/
Try https://phpstan.org/try
Documentation https://phpstan.org/user-guide/getting-started
Blog https://phpstan.org/blog
https://github.com/phpstan/phpstan
Home https://phpstan.org/
Try https://phpstan.org/try
Documentation https://phpstan.org/user-guide/getting-started
Blog https://phpstan.org/blog
GitHub https://github.com/phpstan/phpstan
https://phpstan.org/writing-php-code/phpdoc-types
PHPDocs Basicshttps://phpstan.org/writing-php-code/phpdocs-basics
PHPDoc Typeshttps://phpstan.org/writing-php-code/phpdoc-types
Solving Undefined Variableshttps://phpstan.org/writing-php-code/solving-undefined-variables
Narrowing Typeshttps://phpstan.org/writing-php-code/narrowing-types
User Guide https://phpstan.org/user-guide/getting-started
Config Reference https://phpstan.org/config-reference
Developing Extensions https://phpstan.org/developing-extensions/extension-types
Sponsor PHPStan!https://phpstan.org/sponsor
Menuhttps://phpstan.org/writing-php-code/phpdoc-types
Learn more about PHPDoc basics »https://phpstan.org/writing-php-code/phpdocs-basics
Stub Files »https://phpstan.org/user-guide/stub-files
#https://phpstan.org/writing-php-code/phpdoc-types#basic-types
#https://phpstan.org/writing-php-code/phpdoc-types#mixed
rule level 6https://phpstan.org/user-guide/rule-levels
Rule level 9https://phpstan.org/user-guide/rule-levels
#https://phpstan.org/writing-php-code/phpdoc-types#classes-and-interfaces
don’t work as native PHP typehintshttps://3v4l.org/Ifr2J
#https://phpstan.org/writing-php-code/phpdoc-types#integer-ranges
#https://phpstan.org/writing-php-code/phpdoc-types#general-arrays
#https://phpstan.org/writing-php-code/phpdoc-types#lists
#https://phpstan.org/writing-php-code/phpdoc-types#key-and-value-types-of-arrays-and-iterables
#https://phpstan.org/writing-php-code/phpdoc-types#iterables
generics ruleshttps://phpstan.org/blog/generics-in-php-using-phpdocs
#https://phpstan.org/writing-php-code/phpdoc-types#union-types
Read more about union types here »https://phpstan.org/blog/union-types-vs-intersection-types
#https://phpstan.org/writing-php-code/phpdoc-types#intersection-types
Read more about intersection types here »https://phpstan.org/blog/union-types-vs-intersection-types
#https://phpstan.org/writing-php-code/phpdoc-types#parentheses
#https://phpstan.org/writing-php-code/phpdoc-types#static-and-%24this
see examplehttps://phpstan.org/r/5f856517-5303-4237-95de-2bfa5bc4b9de
#https://phpstan.org/writing-php-code/phpdoc-types#generics
Generics »https://phpstan.org/blog/generics-in-php-using-phpdocs
Generics By Examples »https://phpstan.org/blog/generics-by-examples
#https://phpstan.org/writing-php-code/phpdoc-types#conditional-return-types
#https://phpstan.org/writing-php-code/phpdoc-types#utility-types-for-generics
get @template type from a passed object argumenthttps://phpstan.org/r/ceb59974-0a7c-492a-867a-5d5b7c30e52f
herehttps://github.com/phpstan/phpstan/discussions/9053
create an object type from a class-string typehttps://phpstan.org/r/a01e1e49-6f05-43a8-aac7-aded770cd88a
#https://phpstan.org/writing-php-code/phpdoc-types#class-string
Generichttps://phpstan.org/blog/generics-in-php-using-phpdocs
#https://phpstan.org/writing-php-code/phpdoc-types#other-advanced-string-types
callablehttps://www.php.net/manual/en/language.types.callable.php
is_numeric()https://www.php.net/manual/en/function.is-numeric.php
empty()https://www.php.net/manual/en/function.empty.php
is_literal() RFChttps://wiki.php.net/rfc/is_literal
#https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases
configuration filehttps://phpstan.org/config-reference
#https://phpstan.org/writing-php-code/phpdoc-types#local-type-aliases
#https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
general arrayshttps://phpstan.org/writing-php-code/phpdoc-types#general-arrays
#https://phpstan.org/writing-php-code/phpdoc-types#object-shapes
#https://phpstan.org/writing-php-code/phpdoc-types#literals-and-constants
#https://phpstan.org/writing-php-code/phpdoc-types#global-constants
#https://phpstan.org/writing-php-code/phpdoc-types#callables
executed immediately or saved for laterhttps://phpstan.org/writing-php-code/phpdocs-basics#callables
changing the meaning of $thishttps://phpstan.org/writing-php-code/phpdocs-basics#callables
extensionhttps://phpstan.org/developing-extensions/closure-extensions#parameter-closure-this
#https://phpstan.org/writing-php-code/phpdoc-types#bottom-type
solving undefined variableshttps://phpstan.org/writing-php-code/solving-undefined-variables
#https://phpstan.org/writing-php-code/phpdoc-types#integer-masks
#https://phpstan.org/writing-php-code/phpdoc-types#offset-access
Edit this page on GitHubhttps://github.com/phpstan/phpstan/edit/2.1.x/website/src/writing-php-code/phpdoc-types.md
Twitter https://twitter.com/phpstan
Mastodon https://phpc.social/@phpstan
YouTube https://www.youtube.com/@phpstan
RSS https://phpstan.org/rss.xml

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.