-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Related problems
- Query error with parameterised queries #106 (comment)
- Left joined columns should be nullable #122
-
phpstan-dba/src/QueryReflection/QuerySimulation.php
Lines 87 to 92 in cac63a6
private static function stripTraillingLimit(string $queryString): ?string { // XXX someday we will use a proper SQL parser, // which would also allow us to support even more complex expressions like SELECT .. LIMIT X, Y FOR UPDATE return preg_replace('/\s*LIMIT\s+["\']?\d+["\']?\s*(,\s*["\']?\d*["\']?)?\s*$/i', '', $queryString); } - make test of don't report placeholder errors on non-SELECT statements for now #153 pass, without non-SELECT optout workaround
- Added nullable is not null test #172
- unexpected syntax error #175
- Support simulation of date/dateime placeholders #244
-
count()
Should be inferred as a0|positive-int
#248 - wip: prepared param type validation #65
- Support table aliases in PdoQueryReflector #279
- error on sql-
IN()
and empty-array #292 - properly simulate
IS NULL
#297 -
min()
,max()
,avg()
inference #309
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request