This template should be used to create all new WordPress plugins.
Please replace this text with a brief description of your plugin.
This plugin requires PHP version 8.2 or above.
Install the dependencies:
composer install
Run the tests:
vendor/bin/kahlan spec
Run the linters:
vendor/bin/psalm --show-info=true --find-unused-psalm-suppress
vendor/bin/php-cs-fixer fix
Note that this project aims to create fully typed code, with no Psalm output. We use a Psalm plugin to provide type annotation and stubs for WordPress globals, so the need for explicit annotation should be minimal.
Developers should aim for the output of Psalm to look something like this using the strictest error level:
❯ vendor/bin/psalm --error-level=1 --find-unused-psalm-suppress
Target PHP version: 7.4 (inferred from composer.json).
Scanning files...
Analyzing files...
------------------------------
No errors found!
------------------------------
Checks took 0.01 seconds and used 6.608MB of memory
No files analyzed
Psalm was able to infer types for 97.7273% of the codebase