chore(deps): update dependency vimeo/psalm to v4.11.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
vimeo/psalm | require-dev | minor |
4.10.0 -> 4.11.0
|
Release Notes
vimeo/psalm
v4.11.0
What's Changed
Deprecations
- Declare
html-escaped-string
is deprecated on doc by @sasezaki in https://github.com/vimeo/psalm/pull/6582 - deprecate allowPhpStormGenerics by @orklah in https://github.com/vimeo/psalm/pull/6694
Features
- Flag invalid backing types for enums by @weirdan in https://github.com/vimeo/psalm/pull/6434
- introducing mysqli execute() method parameter change for php 8.1 by @SMAtaurRahman in https://github.com/vimeo/psalm/pull/6435
- introducing fsync & fdatasync functions in callmap by @SMAtaurRahman in https://github.com/vimeo/psalm/pull/6444
- Add mysqli_fetch_column to CallMap by @brayniverse in https://github.com/vimeo/psalm/pull/6447
- Basic enum checks by @weirdan in https://github.com/vimeo/psalm/pull/6437
- Add imagecreatefromavif() and imageavif() to CallMap by @brayniverse in https://github.com/vimeo/psalm/pull/6454
- Always truthy conditions by @orklah in https://github.com/vimeo/psalm/pull/6476
- Update return type for xdebug_get_profiler_filename() by @ssnepenthe in https://github.com/vimeo/psalm/pull/6486
- 1> Range arithmetics and assertions by @orklah in https://github.com/vimeo/psalm/pull/6241
- Add CURLStringFile class by @ishanvyas22 in https://github.com/vimeo/psalm/pull/6574
- Convert finfo functions to use object instead of a resource by @tomasnorre in https://github.com/vimeo/psalm/pull/6566
- Convert imap functions to use object instead of a resource by @tomasnorre in https://github.com/vimeo/psalm/pull/6567
- Add support for advanced IssueHandler in plugins by @gmessier in https://github.com/vimeo/psalm/pull/6519
- Add possibility to include xml config located in subdirectory by @gmessier in https://github.com/vimeo/psalm/pull/6516
- Add if-this-is by @danog in https://github.com/vimeo/psalm/pull/6514
- New annotation: @psalm-if-this-is on methods by @olleharstedt in https://github.com/vimeo/psalm/pull/3782
- Convert LDAP resources to objects by @tomasnorre in https://github.com/vimeo/psalm/pull/6570
- 3> min/max, rand inference improvement with integer range by @orklah in https://github.com/vimeo/psalm/pull/6475
- assert that some type is a list by @orklah in https://github.com/vimeo/psalm/pull/6485
- Convert PSpell resources to objects by @tomasnorre in https://github.com/vimeo/psalm/pull/6569
- Psalter psalm-param by @orklah in https://github.com/vimeo/psalm/pull/6578
- ReflectionClass::getReflectionConstants has a filter parameter by @vaceletm in https://github.com/vimeo/psalm/pull/6591
- php 8.0 introduced visibility constants on ReflectionClassConstant by @vaceletm in https://github.com/vimeo/psalm/pull/6595
- feat: Add Fiber stubs by @ishanvyas22 in https://github.com/vimeo/psalm/pull/6614
- Php-Parser 4.13 by @orklah in https://github.com/vimeo/psalm/pull/6628
- String unpacking by @orklah in https://github.com/vimeo/psalm/pull/6613
- stub for is_a by @orklah in https://github.com/vimeo/psalm/pull/6652
- Added a stub of \ReflectionNamedType by @SCIF in https://github.com/vimeo/psalm/pull/6667
- Convert pgsql functions to use object instead of a resource by @tomasnorre in https://github.com/vimeo/psalm/pull/6671
- Added initial support of asserting properties of objects out of scope by @SCIF in https://github.com/vimeo/psalm/pull/4936
- ftp_pasv is impure by @orklah in https://github.com/vimeo/psalm/pull/6721
Fixes
- Encode XML output consistently by @weirdan in https://github.com/vimeo/psalm/pull/6433
- Force array_walk to not infer input type. by @niconoe- in https://github.com/vimeo/psalm/pull/6441
- Add an optional $options argument to hash functions for PHP 8.1 by @50bhan in https://github.com/vimeo/psalm/pull/6446
- Fix return-type for preg_filter by @tvdijen in https://github.com/vimeo/psalm/pull/6453
- type of "$http_response_header" is "list" now by @SMAtaurRahman in https://github.com/vimeo/psalm/pull/6462
- Fix #6464: false positive for RecursiveArrayIterator::CHILD_ARRAYS_ONLY by @Jean85 in https://github.com/vimeo/psalm/pull/6465
- Print exception class in case of an uncaught exception by @MorrisJobke in https://github.com/vimeo/psalm/pull/6489
- Revert mb_str_split return signature to list by @fluffycondor in https://github.com/vimeo/psalm/pull/6493
- Fix wrong template type in
Sequence::copy()
by @simPod in https://github.com/vimeo/psalm/pull/6494 - Permit null user_agent to get_browser() by @pawel-slowik in https://github.com/vimeo/psalm/pull/6502
- assert object type from instance of with TClassString by @orklah in https://github.com/vimeo/psalm/pull/6503
- add PropertyTypeProvider for DomDocument by @orklah in https://github.com/vimeo/psalm/pull/6505
- Changed signature of Serializable::unserialize stub by @SCIF in https://github.com/vimeo/psalm/pull/6438
- Fix false positive ParadoxicalCondition in negation of in_array by @TysonAndre in https://github.com/vimeo/psalm/pull/6445
- Fix invalid argument bug in generic trait context by @whsv26 in https://github.com/vimeo/psalm/pull/6478
- Catch ComplicatedExpressionException in ArrayFilterReturnTypeProvider by @MorrisJobke in https://github.com/vimeo/psalm/pull/6498
- fixed Uncaught Error: Call to undefined function shell_exec() by @thomasbley in https://github.com/vimeo/psalm/pull/6508
- Prevent unnecessary filter_var() warnings on primitive types by @mmcev106 in https://github.com/vimeo/psalm/pull/6537
- Update xlswriter signatures by @pawel-slowik in https://github.com/vimeo/psalm/pull/6545
- Allow
null
for argumentcontext
infopen()
by @vjik in https://github.com/vimeo/psalm/pull/6557 - "Undefined offset: 1" in PLS Psalm/Codebase.php::1473 by @NikolayZhebet in https://github.com/vimeo/psalm/pull/6560
- Callmap leak by @orklah in https://github.com/vimeo/psalm/pull/6553
- offset the starting position of the function in case of attributes by @orklah in https://github.com/vimeo/psalm/pull/6552
- 2> Count equal 0 assertion by @orklah in https://github.com/vimeo/psalm/pull/6423
- Show file and line in case of an exception in a forked worker by @MorrisJobke in https://github.com/vimeo/psalm/pull/6522
- improvements of alwaysTruthy/alwaysFalsy by @orklah in https://github.com/vimeo/psalm/pull/6518
- assert both sides of an equality by @orklah in https://github.com/vimeo/psalm/pull/6473
- fix wrong operator priority by @orklah in https://github.com/vimeo/psalm/pull/6576
- fix wrong type description added in signature by @orklah in https://github.com/vimeo/psalm/pull/6580
- Better understanding of Templates in lhs of callable TKeyedArray by @orklah in https://github.com/vimeo/psalm/pull/6589
- fix isAlwaysTruthy: TNonEmptyString can be falsy (with '0') by @orklah in https://github.com/vimeo/psalm/pull/6585
- Redundant return type by @orklah in https://github.com/vimeo/psalm/pull/6590
- Fix invalid class/method declaration in stub by @sasezaki in https://github.com/vimeo/psalm/pull/6592
- revert confusing change by @orklah in https://github.com/vimeo/psalm/pull/6597
- Falsable returns by @orklah in https://github.com/vimeo/psalm/pull/6594
- fix error by @orklah in https://github.com/vimeo/psalm/pull/6598
- foreach on list gives a positive|0 offset by @orklah in https://github.com/vimeo/psalm/pull/6608
- Fixed trim-stub by @Dgame in https://github.com/vimeo/psalm/pull/6610
- Array unshift on empty array by @orklah in https://github.com/vimeo/psalm/pull/6604
- array_is_list on empty array returns true by @orklah in https://github.com/vimeo/psalm/pull/6612
- allow any integer range to be satisfied by TNonspecificLiteralInt by @orklah in https://github.com/vimeo/psalm/pull/6617
- add a little details to the Incompatible types found for T error by @orklah in https://github.com/vimeo/psalm/pull/6621
- fix @return 0 by @orklah in https://github.com/vimeo/psalm/pull/6622
- Resolution of unary ops by @orklah in https://github.com/vimeo/psalm/pull/6635
- invert the meaning of the errors by @orklah in https://github.com/vimeo/psalm/pull/6624
- Templated array key by @orklah in https://github.com/vimeo/psalm/pull/6623
- Allow sending possibly_undefined inputs to optional params by @orklah in https://github.com/vimeo/psalm/pull/6636
- Refined PDO::errorInfo, PDOStatement::errorInfo by @vudaltsov in https://github.com/vimeo/psalm/pull/6625
- Refine TKeyedArray with iterable by @orklah in https://github.com/vimeo/psalm/pull/6639
- loose comparison between int/float and string result in numeric-string by @orklah in https://github.com/vimeo/psalm/pull/6640
- infer never on closures(and more?) by @orklah in https://github.com/vimeo/psalm/pull/6643
- Inside conditional by @orklah in https://github.com/vimeo/psalm/pull/6642
- tweaking with loops by @orklah in https://github.com/vimeo/psalm/pull/6629
- SimpleXMLElement is not always truthy by @orklah in https://github.com/vimeo/psalm/pull/6650
- use Attribute feature of PHP-Parser to avoid dealing with dynamic properties by @orklah in https://github.com/vimeo/psalm/pull/6656
- allow Psalm to choose PHP8.1 if it's the lower PHP version allowed by @orklah in https://github.com/vimeo/psalm/pull/6669
- Fix @psalm-method annotation parsing by @fluffycondor in https://github.com/vimeo/psalm/pull/6658
- prevent phpstorm generics from touching to signature types by @orklah in https://github.com/vimeo/psalm/pull/6672
- Fix manipulation of intersection types, arrow functions, foreign static types, parameter static types, T|false|null unions. by @danog in https://github.com/vimeo/psalm/pull/6654
- Don't emit InvalidReturnType when return type was inferred to never by @orklah in https://github.com/vimeo/psalm/pull/6678
- Improve handling of positive ints by array_filter() by @SCIF in https://github.com/vimeo/psalm/pull/6679
- add SimpleXMLIterator to universalObjectCrates by @orklah in https://github.com/vimeo/psalm/pull/6690
- improve empty/falsy reconciliation by @orklah in https://github.com/vimeo/psalm/pull/6684
- fix missing implicit __toString by @orklah in https://github.com/vimeo/psalm/pull/6704
- improve falsy on non-empty-string by @orklah in https://github.com/vimeo/psalm/pull/6707
- fix regression for redundant condition when assigning by @orklah in https://github.com/vimeo/psalm/pull/6715
- fix Uncaught ValueError: strrpos() by @orklah in https://github.com/vimeo/psalm/pull/6716
- only fuse array & Traversable with phpstorm generics by @orklah in https://github.com/vimeo/psalm/pull/6689
- fix literal string access on a non empty array by @orklah in https://github.com/vimeo/psalm/pull/6718
- Don't refine empty/falsy assertions on templates inside loops by @orklah in https://github.com/vimeo/psalm/pull/6720
- Ternary templates by @orklah in https://github.com/vimeo/psalm/pull/6722
Docs
- change definition of list regarding is_list RFC by @orklah in https://github.com/vimeo/psalm/pull/6436
- SublimeText configuration by @chynkm in https://github.com/vimeo/psalm/pull/6459
- Update to Phpstorm support by @ScottAwesome in https://github.com/vimeo/psalm/pull/6511
- Link type coverage badge to shepherd.dev detail page url by @sasezaki in https://github.com/vimeo/psalm/pull/6647
- Fix documentation for non-empty-string by @mathroc in https://github.com/vimeo/psalm/pull/6711
Internal changes
- Prevent failures with dev PHP versions by @weirdan in https://github.com/vimeo/psalm/pull/6448
- limit PHPParser to 4.12 by @orklah in https://github.com/vimeo/psalm/pull/6509
- fix build by @orklah in https://github.com/vimeo/psalm/pull/6526
- code trimming by @orklah in https://github.com/vimeo/psalm/pull/6532
- Combine types with null argument by @orklah in https://github.com/vimeo/psalm/pull/6533
- remove unused nullable on param types by @orklah in https://github.com/vimeo/psalm/pull/6534
- Improvements by @orklah in https://github.com/vimeo/psalm/pull/6535
- Cleanup by @orklah in https://github.com/vimeo/psalm/pull/6536
- enable test on taint by @orklah in https://github.com/vimeo/psalm/pull/6538
- [TASK] Resolve namespace of class related AST statements by @ohader in https://github.com/vimeo/psalm/pull/5091
- Cleanup by @orklah in https://github.com/vimeo/psalm/pull/6577
- Lint all *.php files, not only src by @sasezaki in https://github.com/vimeo/psalm/pull/6587
- cleanup - Remove not used infection.json.dist by @sasezaki in https://github.com/vimeo/psalm/pull/6599
- Union::getAssertionString with multiple types by @orklah in https://github.com/vimeo/psalm/pull/6641
- Code trimming by @orklah in https://github.com/vimeo/psalm/pull/6660
- run CI on PHP 8.1 by @orklah in https://github.com/vimeo/psalm/pull/6666
- Revert "run CI on PHP 8.1" by @weirdan in https://github.com/vimeo/psalm/pull/6670
- More tests for
array_merge
andarray_replace
by @ElisDN in https://github.com/vimeo/psalm/pull/6675 - Remove hasPossiblyNumericType by @orklah in https://github.com/vimeo/psalm/pull/6693
- skipped tests by @orklah in https://github.com/vimeo/psalm/pull/6708
- More refactoring around Empty/falsy reconciliation by @orklah in https://github.com/vimeo/psalm/pull/6714
Typos
- Use correct English articles by @simPod in https://github.com/vimeo/psalm/pull/6554
New Contributors
- @SMAtaurRahman made their first contribution in https://github.com/vimeo/psalm/pull/6435
- @50bhan made their first contribution in https://github.com/vimeo/psalm/pull/6446
- @brayniverse made their first contribution in https://github.com/vimeo/psalm/pull/6447
- @chynkm made their first contribution in https://github.com/vimeo/psalm/pull/6459
- @ssnepenthe made their first contribution in https://github.com/vimeo/psalm/pull/6486
- @MorrisJobke made their first contribution in https://github.com/vimeo/psalm/pull/6489
- @fluffycondor made their first contribution in https://github.com/vimeo/psalm/pull/6493
- @SCIF made their first contribution in https://github.com/vimeo/psalm/pull/6438
- @whsv26 made their first contribution in https://github.com/vimeo/psalm/pull/6478
- @ScottAwesome made their first contribution in https://github.com/vimeo/psalm/pull/6511
- @vjik made their first contribution in https://github.com/vimeo/psalm/pull/6557
- @NikolayZhebet made their first contribution in https://github.com/vimeo/psalm/pull/6560
- @ishanvyas22 made their first contribution in https://github.com/vimeo/psalm/pull/6574
- @tomasnorre made their first contribution in https://github.com/vimeo/psalm/pull/6566
- @vaceletm made their first contribution in https://github.com/vimeo/psalm/pull/6591
- @Dgame made their first contribution in https://github.com/vimeo/psalm/pull/6610
- @mathroc made their first contribution in https://github.com/vimeo/psalm/pull/6711
Full Changelog: https://github.com/vimeo/psalm/compare/4.10.0...4.11.0
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.