From eb63eddce1786cae68dd9a0f7e3dfca570a70fa7 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Wed, 15 Feb 2023 23:12:14 -0400 Subject: [PATCH] Added a page explaining how to add a new issue type --- docs/contributing/adding_issues.md | 62 ++++++++++++++++++++++++++++++ docs/contributing/index.md | 1 + 2 files changed, 63 insertions(+) create mode 100644 docs/contributing/adding_issues.md diff --git a/docs/contributing/adding_issues.md b/docs/contributing/adding_issues.md new file mode 100644 index 000000000..b609d8728 --- /dev/null +++ b/docs/contributing/adding_issues.md @@ -0,0 +1,62 @@ +# Adding a new issue type + +To add a new issue type there are a number of required steps, listed below. + +## Generating a new shortcode + +Run `bin/max_used_shortcode.php` and note the value it printed (`$max_shortcode`) + +## Create issue class + +Create a class in `Psalm\Issue` namespace like this: + +```php +