Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default defineConfig({
label: 'Getting Started',
items: [
{ label: 'Installation', link: '/' },
{ label: 'Usage', slug: 'getting-started/usage' },
{ slug: 'getting-started/usage' },
{ slug: 'getting-started/supported-features' },
{ label: 'Changelog', link: 'changelog' },
],
},
Expand Down
25 changes: 25 additions & 0 deletions docs/src/content/docs/getting-started/supported-features.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Supported Features
---

Most native reflection features and most PHPDoc (or, rather PHPStan) features are supported. Here's a full list:

- reflecting classes, interfaces, traits enums
- reflecting anonymous classes
- reflecting properties and methods
- `@template`, `@template-covariant`, `@template-contravariant`, upper bound (`of string`) and
default values (`= string`) - in classes and methods
- `@extends`, `@implements` and `@use`
- `@var` for properties and promoted properties
- `@param` for method parameters and promoted properties
- `@return` for method returns
- `@phpstan-` and `@psalm-` versions of all tags - with precedence
- all native types, template (generic) types and array tuples

## What isn't supported, but would be welcomed

- reflecting functions
- function/method return type inference from arguments
- conditional types
- type aliases (local and imported)
- some other PHPDoc tags