1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

nit: Fix return type in docs/supported_annotations.md

This commit is contained in:
Tyson Andre 2018-10-18 17:04:05 -04:00 committed by Matthew Brown
parent 6def4e42c6
commit e0dda676ed

View File

@ -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);
}