packagist psalm/plugin-laravel v4.23.1

one hour ago

Taint now flows through Stringable chains.

Fixes

  • Keep the taint of a Stringable through the methods whose result holds its string, such as trim(), upper(), after(), limit(), append() and toString(). Each Stringable keeps its own taint, so a tainted call doesn't taint the same method on other strings. hash(), encrypt(), toBase64() and numbers() drop the taint, and slug() and stripTags() remove HTML (#2374)
 $name = $request->str('name');
 echo $name->trim()->upper();
-// no issue
+// TaintedHtml
 echo Str::of('safe')->upper();
 // no issue

Full Changelog: v4.23.0...v4.23.1

Don't miss a new plugin-laravel release

NewReleases is sending notifications on new releases.