From e0dda676ed0b6636fa2a94b5657633f0cb4ea0ec Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Thu, 18 Oct 2018 17:04:05 -0400 Subject: [PATCH] nit: Fix return type in docs/supported_annotations.md --- docs/supported_annotations.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/supported_annotations.md b/docs/supported_annotations.md index 90c3c6923..2e1008cb3 100644 --- a/docs/supported_annotations.md +++ b/docs/supported_annotations.md @@ -102,7 +102,7 @@ function takesArray(array $arr) : void { validateStringArray($arr); takesInt($arr[0]); // this is an error - + foreach ($arr as $a) { takesString($a); // this is fine } @@ -145,7 +145,7 @@ function takesA(A $a) : void { } else { $a->bar(); } - + $a->bar(); //error } ``` @@ -170,7 +170,7 @@ And you can check on null values: /** * @psalm-assert-if-true null $value */ -function isNull($value): void { +function isNull($value): bool { return ($value === null); }