github vimeo/psalm 7.11.0

35 minutes ago

What's Changed

Features

  • Report the CWE weaknesses of issues, and use the issue type as the SARIF rule id by @danog in #14156
  • Remove the taints a value can't carry once it matches an anchored pattern, or a list of words through a string cast by @danog in #14161
  • Require the Doctrine plugin, and enable it when composer.json requires Doctrine by @danog in #14165
  • Report weak hashes and ciphers, seeded random number generators, insecure cookies and XXE by @danog in #14160
  • Make what symfony/yaml parses with PARSE_OBJECT an unserialize sink by @danog in #14172

Fixes

  • [6.x] Fix crash when a class extends a class_alias() declared later by @wleeaf in #12494
  • Fix alter ignoring MissingThrowsDocblock suppression by @d-mitrofanov-v in #11586
  • Accept the $flags parameter of ArrayObject/ArrayIterator asort()/ksort() by @orklah in #14127
  • Charge __toString when builtins convert values or array values to strings by @orklah in #14129
  • Taint the dynamic properties of a tainted object by @danog in #14162
  • Fix gettype() !== narrowing to a class named after the type by @orklah in #14152
  • Analyse Foo::C and $foo::C with one helper (experimental) by @orklah in #14153
  • Merge NamespaceStatementsDiffer into FileStatementsDiffer (experimental) by @orklah in #14148
  • Analyze methods of another file through one helper keeping the root file by @orklah in #14147
  • Taint what the preg_replace_callback() callback returns by @danog in #14067
  • Keep the taints of an array iterated with foreach when it can also be a string by @danog in #14168
  • [Experimental] One builder per kind for the assertions of === and !== by @orklah in #14155
  • Fix memory-limit option in psalm-refactor by @Aaqibhafeezkhan in #14070
  • Define the offsets before an offset asserted on a list by @orklah in #14178
  • Give conditions built-in assertions only when the call resolves to the built-in function by @orklah in #14151
  • Fix exponential analysis time of a negated in_array() over a literal list inside || by @shu-chen-dot-ca in #14072
  • fix(reports): escape control and bidi characters in the human-readable reports by @jirkace in #12804
  • fix(taint): link the arguments after the first one a variadic collects to its parameter by @jirkace in #13112
  • fix(assertions): @psalm-assert accepts an offset of an argument by @jirkace in #13005
  • fix(assert): an assertion on a scalar parameter does not narrow a mixed argument by @jirkace in #13895
  • Assert a non-empty string after file_exists, is_file and the other file tests by @jirkace in #12595
  • Fix crashes on first-class callables of inherited and provider-confirmed methods by @alies-dev in #12124
  • Bind the method templates of the parent docblock an untyped override inherits by @shu-chen-dot-ca in #14073
  • Fix master CI: keep declared assertions of a call compared strictly to false by @orklah in #14191
  • Fix template inference and a crash in static first-class callables by @alies-dev in #14192

Internal changes

  • Dispatch the AddTaints/RemoveTaints handlers once per function call by @orklah in #14144
  • Extract the shared tail of the simple assertion reconcilers by @orklah in #14154
  • Authenticate PIE against GitHub when building the stub images by @danog in #14094
  • Deduplicate the console report formatting and the plugin enable/disable commands by @orklah in #14149
  • Merge 6.x into master by @danog in #14166
  • Track classlike existence with one kind bitmask per name by @orklah in #14146
  • Bump the perf corpus Drupal to 11.4.13 and split report issues by category by @orklah in #14182
  • Remove the dead Context::$collect_mutations mode by @orklah in #14145
  • Remove code for PHP versions Psalm no longer runs on by @orklah in #14143
  • Move hard-coded callmap return types into return type providers by @orklah in #14150
  • Fix line length in Refactor::LONG_OPTIONS by @orklah in #14183

New Contributors

Full Changelog: 7.10.0...7.11.0

Don't miss a new psalm release

NewReleases is sending notifications on new releases.