mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Update README.md
This commit is contained in:
parent
54cdad3ce9
commit
e877912614
@ -183,7 +183,7 @@ is assigned the type `array{ name: string, type: string}`.
|
||||
Psalm fully supports PHPDoc's array typing syntax, such that any array typed with `TValue[]` will be typed in Psalm as `array<mixed, TValue>`. That also extends to generic type definitions with only one param e.g. `array<TValue>`, which is equivalent to `array<mixed, TValue>`.
|
||||
|
||||
|
||||
## Checking non-PHP files (e.g. templates)
|
||||
## Checking non-PHP files
|
||||
|
||||
Psalm supports the ability to check various PHPish files by extending the `FileChecker` class. For example, if you have a template where the variables are set elsewhere, Psalm can scrape those variables and check the template with those variables pre-populated.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user