-
# Bug report
```
# phpstan-test/constant.php
-
Hi there,
I often parse things such as API responses or other JSON decoded payloads with the `allow_unknown_fields` parameter set to `true`.
This allows me to be forwards compatible with any field…
-
PHP 8.4 alpha2 is out and `php -l` passes on 13.x branch but some vendor dependencies need fixes
General function deprecation is coming https://wiki.php.net/rfc/deprecations_php_8_4
But for now n…
-
### Bug report
When an array is passed expecting numeric keys unioned with an array shape of string keys, it merges them together into `array`, which makes type checking much more difficult.
In my…
Paril updated
3 months ago
-
I started working on using PHPStan to detect potential wrong code.
Many PRs I opened recently were related to this analysis.
This can be tracked here: https://github.com/deguif/Elastica/actions?quer…
-
When using `simple_array` with `nullable=true`, PHPStan thinks the property should be nullable. But that is not the case, as the `simple_array` type always returns an empty array, even if the database…
-
Hi,
I just noticed, that `$request->getAttribute('site')` is by default configured to return a Site object. The attribute could, however, also hold an instance of `NullSite`, so I reconfigured the `r…
-
### Feature request
There are string functions that we can send numeric string into, that will often return numeric string.
Examples:
- `trim`, `rtrim`, `ltrim` on a numeric-string will either be e…
-
### Feature request
our legacy app heavily uses global constants.
we use a php file, which we load as bootstrap file to get arround ["Constant ... not found." errors](https://phpstan.org/r/fb267…
-
# Bug report
It seems that phpstan doesn't supports correctly functions with params given by reference.
It considers $data as always empty but when function is called reference variable is not emp…