mmcev106 / psalm-playground-plugins
A tool for learning how to write Psalm plugins
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:psalm-plugin
Requires
- vimeo/psalm: ^5.8
This package is not auto-updated.
Last update: 2024-10-04 01:52:32 UTC
README
These Psalm plugins aim to provide a playground that makes it easy to learn more about how to create Psalm plugins. By default they print each location analyzed by Psalm, and can be modified to quickly test the result of any desired action in any of Psalm's API interfaces.
To see these plugins in action:
- Clone this repo
- Run
composer install
- Run
psalm --no-cache
to see a trace ofexample.php
including lines & positions from which each of Psalm's API events are fired - Modify these plugins to learn whatever you like! Suggestions include but are not limited to...
- Include your own code in
example.php
to learn more about how Psalm steps through it - Modify these plugins to perform any action you like to aid in learning how to write your own plugins
- Include these plugins in your own projects to see how Psalm steps through them
- Modify these plugins in your own projects to only show traces and/or perform actions relevant to your own goals
- Use the
static::dump()
method to get details about any Psalm class.
- Include your own code in