Closed StevenRenaux closed 5 months ago
auditor
Related to this documentation page, and specifically to the query section.
As explain in the documentation, normally int value can be passed to SimpleFilter construct.
int
SimpleFilter
If you want to pass an int as value, and as explain in the documentation you will get an error of typing if you use PHPStan.
SimpleFilter class:
class SimpleFilter implements FilterInterface { protected string $name; /** * @var array|string */ protected $value; /** * @param array|string $value */ public function __construct(string $name, $value) { $this->name = $name; $this->value = $value; } // rest of the code... }
Update typing.
auditor
versionSummary
Related to this documentation page, and specifically to the query section.
Current behavior
As explain in the documentation, normally
int
value can be passed toSimpleFilter
construct.How to reproduce
If you want to pass an
int
as value, and as explain in the documentation you will get an error of typing if you use PHPStan.SimpleFilter class:
Expected behavior
Update typing.