-
# Bug report
The generic parameter is being used as the return type of the closure, rather than being resolved further
### Code snippet that reproduces the problem
https://phpstan.org/r/888dd…
-
# Bug report
i think my code example does explain it best:
https://phpstan.org/r/73b7328c-be8e-4bab-a865-39c7bda33eaf
i found this in legacy code and was wondering why this was not an error aft…
-
# Bug report
```bash
$ phpstan -V
PHPStan - PHP Static Analysis Tool 1.11.x-dev@3b6bd74
```
In the following example, phpstan reports that
```
Enum case Bag::A type string doesn't match …
-
### Bug report
As shown in [failing test](https://github.com/phpstan/phpstan-src/pull/2595). PHPStan wrongly assumes no exception is thrown from methods returning exceptions even when [implicitThrows…
-
### Version
4.25.0
### Description
The release notes of [4.24.0](https://github.com/nelmio/NelmioApiDocBundle/releases/tag/v4.24.0) mention that integer range types are now supported, and links to …
-
In PHP 7 calling a non-static method statically only threw a notice or warning. In PHP 8 it will cause EXPLOSIONS 🤯 .
Example code:
```
class MyForm extends BaseForm {
public functio…
-
### Bug report
This is, once again, a weird corner-case bug that took me hours to nail down.
When using `@phpstan-use OtherTrait` within a trait,
https://github.com/dktapps/phpstan-generic-tra…
-
### Current Behavior
When viewing a vulnerability, it shows the number of affected projects in the header of that tab. When switching to an alias the screen gets updated with the data from the alias,…
-
Please add a `README.md` showing how the parser can be used.
jasny updated
4 years ago
-
### Symfony version(s) affected
6.2.3
### Description
`list` annotation in phpstan and psalm are
> Lists are arrays with sequential integer keys starting at 0.
But when annotating an array li…