-
using __callStatic with a private constructor errors with PropertyNotSetInConstructor
https://psalm.dev/r/6881a89db9
I figured out that it can be fixed it in a few ways
don't use the magic __ca…
-
https://psalm.dev/r/41977d3652
Correct for @param: https://psalm.dev/r/85b6c782c3
-
This is split off #132, so that issue can remain about actual (unit) tests that actually run Hypha code, and this issue can be about automatic code (style) checks (i.e. static analysis) using third-pa…
-
With the following `psalm.xml`:
```xml
```
...and the following `file.php`:
```php
-
Imagine the following example:
https://psalm.dev/r/a95dce64af
It contains a library, that has a not so Psalm-friendly implementation: Nobody knows whether the properties will be initialised. But…
-
I just tried release [4.3.2](https://github.com/vimeo/psalm/releases/tag/4.3.2) that contains the GEOS stubs that I PR'ed earlier in #4902, but after removing my PHP stubs, Psalm reports a lot of thes…
-
This is possible currently: https://psalm.dev/r/b2a9011f65
However, the library might change the following way, making it break: https://psalm.dev/r/7e645e6b69
This could be solved by making Psa…
-
1. arrays of X
```php
public function addProducts(Product[] $products);
public function getProducts(): Product[];
```
2. `|` in typehints
```php
public function addProducts(Product[]|stri…
-
This code was working fine for years until 4.24.0 was released
```php
$files = $this->fetch($this->parameters['dir']);
foreach ($files as $file) {
```
```php
/**
* @p…
-
https://psalm.dev/r/b355396881
Probably is something related with templates on callables, but this is really weird.
As you can see here (https://psalm.dev/r/6e491c9102) the first `chain` call is…