https://psalm.dev/r/005f4a160c
```php
}
* @psalm-param PermissionsArray $permissions
*/
function can(string $ability, array $permissions): bool {
return $permissions['is'][$ability] ?? false;
}
```
```
Psalm output (using commit 0af503a):
ERROR: InvalidDocblock - 7:1 - Cannot process colon without parent
ERROR: UndefinedDocblockClass - 5:17 - Docblock-defined class, interface or enum named PermissionsArray does not exist
ERROR: MismatchingDocblockParamType - 5:17 - Parameter $permissions has wrong type 'PermissionsArray', should be 'array'
INFO: MixedInferredReturnType - 7:52 - Could not verify return type 'bool' for can
```
https://psalm.dev/r/005f4a160c
It seems like
is
is sort of special key name, if I rename it to anything else - it works without any issues