diff --git a/docs/running_psalm/issues/PossiblyNullArgument.md b/docs/running_psalm/issues/PossiblyNullArgument.md index 49aa90918..547162210 100644 --- a/docs/running_psalm/issues/PossiblyNullArgument.md +++ b/docs/running_psalm/issues/PossiblyNullArgument.md @@ -24,17 +24,18 @@ This fails since it's not guaranteed that subsequent calls to `$cat->getName()` #### Possible Solutions -* Use a variable: - ```php - getName(); - if (is_string($catName) { - foo($catName); - } - unset($catName); - ``` -* Add [`@psalm-mutation-free`](../../annotating_code/supported_annotations.md#psalm-mutation-free) to the declaration of the function +Use a variable: +```php +getName(); +if (is_string($catName) { + foo($catName); +} +unset($catName); +``` + +Or add [`@psalm-mutation-free`](../../annotating_code/supported_annotations.md#psalm-mutation-free) to the declaration of the function ### Calling Another Function After `if`