From 07b3ef864d46f152fdd613a50b134898400baaf8 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 19 Jan 2021 19:17:45 +0100 Subject: [PATCH 1/4] Add a note about static analysis --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9f53f8fa..6189e0b0 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,9 @@ Overriding the following methods in your assertion class allows you to change th * `protected static function reportInvalidArgument($message)` * This method is called when an assertion fails, with the specified error message. Here you can throw your own exception, or log something. +## Static analysis support + +Where applicable assertion functions are annotated to support Psalms' [Assertion syntax](https://psalm.dev/docs/annotating_code/assertion_syntax/). A dedicated [PHPStan Plugin](https://github.com/phpstan/phpstan-webmozart-assert) is required for proper type support. Authors ------- From fc9223d69dca3d72490c05d329cebe036763f3be Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 19 Jan 2021 19:28:39 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6189e0b0..1988dc7d 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,8 @@ Overriding the following methods in your assertion class allows you to change th ## Static analysis support -Where applicable assertion functions are annotated to support Psalms' [Assertion syntax](https://psalm.dev/docs/annotating_code/assertion_syntax/). A dedicated [PHPStan Plugin](https://github.com/phpstan/phpstan-webmozart-assert) is required for proper type support. +Where applicable assertion functions are annotated to support Psalm's [Assertion syntax](https://psalm.dev/docs/annotating_code/assertion_syntax/). +A dedicated [PHPStan Plugin](https://github.com/phpstan/phpstan-webmozart-assert) is required for proper type support. Authors ------- From 1c1d4cb42018b5187408ea29e8c9bf18e104a924 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 19 Jan 2021 19:30:21 +0100 Subject: [PATCH 3/4] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1988dc7d..9b858f31 100644 --- a/README.md +++ b/README.md @@ -251,8 +251,10 @@ Overriding the following methods in your assertion class allows you to change th ## Static analysis support -Where applicable assertion functions are annotated to support Psalm's [Assertion syntax](https://psalm.dev/docs/annotating_code/assertion_syntax/). -A dedicated [PHPStan Plugin](https://github.com/phpstan/phpstan-webmozart-assert) is required for proper type support. +Where applicable assertion functions are annotated to support Psalm's +[Assertion syntax](https://psalm.dev/docs/annotating_code/assertion_syntax/). +A dedicated [PHPStan Plugin](https://github.com/phpstan/phpstan-webmozart-assert) is +required for proper type support. Authors ------- From 5f47c6d51dbef7bafc7dfc1a9a2c3551e5ffa94b Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sun, 28 Feb 2021 21:00:39 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b858f31..c1edc165 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ Overriding the following methods in your assertion class allows you to change th ## Static analysis support -Where applicable assertion functions are annotated to support Psalm's +Where applicable, assertion functions are annotated to support Psalm's [Assertion syntax](https://psalm.dev/docs/annotating_code/assertion_syntax/). A dedicated [PHPStan Plugin](https://github.com/phpstan/phpstan-webmozart-assert) is required for proper type support.