What's Changed
Features
- Parse SQL queries to track security analysis taints by @danog in #14159
- Add the redirect taint kind, and connect session stores to their reads by @danog in #14158
- Give a parameter no sinks with @psalm-taint-sink none by @danog in #14230
- Trust the server a request reaches when the URL's host matches a list of hosts by @danog in #14170
- Let plugins record what a validation checks, and trust the value once a check on its result says it passed by @danog in #14176
- Report escaped values placed where their escaping doesn't protect them by @danog in #14400
Fixes
- Let @psalm- purity tags win over @pure and @phpstan-pure by @shu-chen-dot-ca in #14071
- Pin type variables of new assigned to static properties, property items and property references by @orklah in #14296
- Keep references bound in a loop or branch after it by @orklah in #14283
- fix(reconciler): keep the value type of an array offset when empty() is true by @jirkace in #13087
- Fix: default cache directory when HOME is unset or not writable by @alies-dev in #14332
- Fix: type of globals written through another function depends on file analysis order by @alies-dev in #12549
- Report a path the client chooses given to UploadedFileInterface::moveTo() and to the parameters inheriting a sink by @danog in #14227
- fix(type): a callable is never falsy by @jirkace in #14322
- fix(docblock): two interfaces documenting the same signature document the implementation by @jirkace in #14361
- fix(assertions): a false $a !== $b gives both operands the type of the other by @jirkace in #13365
- fix(call): the out type of a by-ref param reads the templates bound by later arguments by @jirkace in #13435
- fix(docblock): callable param types with the same inner parameter name are not duplicated tags by @jirkace in #14327
- Infer loop variables reassigned from their own method call, property or offset by @danog in #14392
- Keep the template of a variable identical to a literal by @orklah in #14398
Docs
Internal changes
- Fix master self-analysis: mark cache-directory env vars as operator-chosen by @danog in #14378
- Share the integer comparison narrowing of the two simple reconcilers by @orklah in #14307
- Merge the assertion finders of < and > comparisons by @orklah in #14395
Full Changelog: 7.12.0...7.13.0