-
Consider the following [snippet](https://psalm.dev/r/e128b3793a):
```php
/**
* @psalm-type Foo = object{
* bar: object{
* baz: string|null,
* },
* }
*/
/** @var Foo …
-
Implement a method that can be applied to new Psalms
- [ ] add language markers to existing identation with spaces (and remove them)
- [ ] iterate ##1 and ##1 on line by line
-
I am using `psalm` as a linter (as the language server is cooked for my project) but it seems that [mason-nvim-lint](https://github.com/rshkarin/mason-nvim-lint) cannot auto-install it, i.e. getting `…
-
# Feature request
Psalm allows `array{foo: int, bar: int, ...}` notation to specify that this array may also contain other keys. Array shapes without the `...` must not contain any other keys.
T…
-
I have a variable defined before a try-finally block. The try block modifies this variable and then returns immediately. The finally block checks the value of this variable.
In this https://psalm.d…
-
Currently methods like `preg_replace` have a return type of `string|array` specified.
When in reality that return type is dependant on the input.
Static analysis tools, like PHPStan and Psalm can …
-
**Describe the bug**
```
InvalidArgumentException Could not get class storage for eloquent
Emitted in /var/www/vendor/vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php:45
Stac…
-
https://phpstan.org/writing-php-code/phpdoc-types#conditional-return-types
@template T of int|array
@return (T is int ? static : array)
I am not sure that you support psalm-types too
-
Since this collections lib is quite popular.
I would like to suggest it to use generics/template types like `doctrine/collections` does. This will make it more type safe to use this collections
-
Users of this library currently can't install PHPUnit v11 because of this dependency, upgrading it to the next version would allow PHPUnit v11 installation.