Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vimeo/psalm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.9.0
Choose a base ref
...
head repository: vimeo/psalm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.10.0
Choose a head ref
Loading
Showing with 4,994 additions and 1,399 deletions.
  1. +1 −1 .github/workflows/pr-labels.yml
  2. +80 −80 dictionaries/CallMap.php
  3. +4 −0 dictionaries/CallMap_71_delta.php
  4. +1 −1 dictionaries/CallMap_72_delta.php
  5. +1 −1 dictionaries/CallMap_73_delta.php
  6. +20 −4 dictionaries/CallMap_80_delta.php
  7. +76 −76 dictionaries/CallMap_historical.php
  8. +87 −7 docs/annotating_code/supported_annotations.md
  9. +1 −1 docs/annotating_code/type_syntax/atomic_types.md
  10. +9 −9 docs/annotating_code/type_syntax/utility_types.md
  11. +2 −1 docs/running_psalm/issues/Trace.md
  12. +1 −9 psalm-baseline.xml
  13. +2 −1 src/Psalm/Config.php
  14. +1 −0 src/Psalm/DocComment.php
  15. +0 −2 src/Psalm/Internal/Analyzer/ClassAnalyzer.php
  16. +150 −72 src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php
  17. +5 −0 src/Psalm/Internal/Analyzer/ProjectAnalyzer.php
  18. +3 −5 src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php
  19. +0 −5 src/Psalm/Internal/Analyzer/Statements/Block/LoopAnalyzer.php
  20. +1 −1 src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php
  21. +1 −1 src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php
  22. +23 −292 src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php
  23. +174 −34 src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArrayFunctionArgumentsAnalyzer.php
  24. +11 −2 src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php
  25. +13 −3 src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallReturnTypeFetcher.php
  26. +325 −0 src/Psalm/Internal/Analyzer/Statements/Expression/Call/HighOrderFunctionArgHandler.php
  27. +90 −0 src/Psalm/Internal/Analyzer/Statements/Expression/Call/HighOrderFunctionArgInfo.php
  28. +65 −0 src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php
  29. +42 −18 src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/ExistingAtomicMethodCallAnalyzer.php
  30. +1 −1 src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MissingMethodCallHandler.php
  31. +66 −32 src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php
  32. +74 −35 ...lm/Internal/Analyzer/Statements/Expression/Call/StaticMethod/ExistingAtomicStaticCallAnalyzer.php
  33. +2 −0 src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php
  34. +1 −0 src/Psalm/Internal/Analyzer/Statements/Expression/ClassConstAnalyzer.php
  35. +89 −37 src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/AtomicPropertyFetchAnalyzer.php
  36. +14 −1 src/Psalm/Internal/Analyzer/Statements/Expression/IncludeAnalyzer.php
  37. +15 −6 src/Psalm/Internal/Analyzer/Statements/Expression/MatchAnalyzer.php
  38. +63 −16 src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php
  39. +1 −0 src/Psalm/Internal/Analyzer/StatementsAnalyzer.php
  40. +3 −0 src/Psalm/Internal/Cli/Psalm.php
  41. +17 −16 src/Psalm/Internal/Codebase/ClassConstantByWildcardResolver.php
  42. +143 −32 src/Psalm/Internal/Codebase/ClassLikes.php
  43. +21 −0 src/Psalm/Internal/Codebase/ConstantTypeResolver.php
  44. +0 −2 src/Psalm/Internal/Codebase/Methods.php
  45. +4 −4 src/Psalm/Internal/Codebase/Populator.php
  46. +1 −0 src/Psalm/Internal/Codebase/Scanner.php
  47. +87 −0 src/Psalm/Internal/Codebase/StorageByPatternResolver.php
  48. +24 −0 src/Psalm/Internal/EventDispatcher.php
  49. +3 −0 src/Psalm/Internal/Fork/PsalmRestarter.php
  50. +16 −0 src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeDocblockParser.php
  51. +4 −8 src/Psalm/Internal/PhpVisitor/Reflector/ClassLikeNodeScanner.php
  52. +21 −0 src/Psalm/Internal/PhpVisitor/Reflector/ExpressionResolver.php
  53. +4 −0 src/Psalm/Internal/Provider/ClassLikeStorageProvider.php
  54. +10 −0 src/Psalm/Internal/Provider/FakeFileProvider.php
  55. +5 −0 src/Psalm/Internal/Provider/FileProvider.php
  56. +2 −0 src/Psalm/Internal/Provider/FunctionReturnTypeProvider.php
  57. +69 −0 src/Psalm/Internal/Provider/ReturnTypeProvider/DateReturnTypeProvider.php
  58. +2 −2 src/Psalm/Internal/Scanner/ClassLikeDocblockComment.php
  59. +11 −0 src/Psalm/Internal/Scanner/UnresolvedConstant/EnumNameFetch.php
  60. +22 −0 src/Psalm/Internal/Scanner/UnresolvedConstant/EnumPropertyFetch.php
  61. +11 −0 src/Psalm/Internal/Scanner/UnresolvedConstant/EnumValueFetch.php
  62. +24 −1 src/Psalm/Internal/Type/ArrayType.php
  63. +66 −1 src/Psalm/Internal/Type/Comparator/AtomicTypeComparator.php
  64. +159 −46 src/Psalm/Internal/Type/Comparator/KeyedArrayComparator.php
  65. +8 −3 src/Psalm/Internal/Type/Comparator/ObjectComparator.php
  66. +1 −1 src/Psalm/Internal/Type/Comparator/UnionTypeComparator.php
  67. +27 −1 src/Psalm/Internal/Type/ParseTreeCreator.php
  68. +68 −11 src/Psalm/Internal/Type/SimpleAssertionReconciler.php
  69. +55 −13 src/Psalm/Internal/Type/TemplateStandinTypeReplacer.php
  70. +12 −6 src/Psalm/Internal/Type/TypeCombiner.php
  71. +23 −51 src/Psalm/Internal/Type/TypeExpander.php
  72. +319 −117 src/Psalm/Internal/Type/TypeParser.php
  73. +15 −0 src/Psalm/Plugin/EventHandler/BeforeExpressionAnalysisInterface.php
  74. +79 −0 src/Psalm/Plugin/EventHandler/Event/BeforeExpressionAnalysisEvent.php
  75. +15 −4 src/Psalm/Storage/ClassLikeStorage.php
  76. +20 −6 src/Psalm/Type.php
  77. +17 −3 src/Psalm/Type/Atomic/CallableTrait.php
  78. +7 −7 src/Psalm/Type/Atomic/HasIntersectionTrait.php
  79. +16 −1 src/Psalm/Type/Atomic/TCallableObject.php
  80. +1 −1 src/Psalm/Type/Atomic/TClosure.php
  81. +1 −1 src/Psalm/Type/Atomic/TGenericObject.php
  82. +1 −1 src/Psalm/Type/Atomic/TIterable.php
  83. +55 −13 src/Psalm/Type/Atomic/TKeyedArray.php
  84. +1 −1 src/Psalm/Type/Atomic/TNamedObject.php
  85. +2 −2 src/Psalm/Type/Atomic/TObjectWithProperties.php
  86. +1 −1 src/Psalm/Type/Atomic/TSingleLetter.php
  87. +9 −0 src/Psalm/Type/Atomic/TTypeAlias.php
  88. +30 −0 src/Psalm/Type/Atomic/TUnknownClassString.php
  89. +30 −9 src/Psalm/Type/Atomic/TValueOf.php
  90. +35 −2 src/Psalm/Type/UnionTrait.php
  91. +90 −0 stubs/CoreGenericClasses.phpstub
  92. +1 −12 stubs/CoreGenericFunctions.phpstub
  93. +1 −1 stubs/CoreGenericIterators.phpstub
  94. +2 −2 tests/ArgTest.php
  95. +9 −0 tests/ArrayAccessTest.php
  96. +24 −1 tests/ArrayAssignmentTest.php
  97. +81 −2 tests/ArrayFunctionCallTest.php
  98. +75 −0 tests/AssertAnnotationTest.php
  99. +239 −64 tests/CallableTest.php
  100. +71 −0 tests/Config/ConfigTest.php
  101. +331 −1 tests/ConstantTest.php
  102. +32 −0 tests/EnumTest.php
  103. +246 −10 tests/FunctionCallTest.php
  104. +68 −2 tests/IncludeTest.php
  105. +7 −3 tests/Internal/Codebase/ClassConstantByWildcardResolverTest.php
  106. +0 −78 tests/Internal/Codebase/InternalCallMapHandlerTest.php
  107. +237 −0 tests/IntersectionTypeTest.php
  108. +25 −0 tests/MagicMethodAnnotationTest.php
  109. +24 −0 tests/MagicPropertyTest.php
  110. +60 −0 tests/MatchTest.php
  111. +21 −0 tests/PropertyTypeTest.php
  112. +54 −2 tests/ReturnTypeTest.php
  113. +33 −4 tests/Template/ClassTemplateTest.php
  114. +38 −0 tests/Template/FunctionTemplateAssertTest.php
  115. +16 −7 tests/Traits/InvalidCodeAnalysisTestTrait.php
  116. +1 −1 tests/Traits/ValidCodeAnalysisTestTrait.php
  117. +2 −2 tests/TypeCombinationTest.php
  118. +4 −0 tests/TypeComparatorTest.php
  119. +15 −0 tests/TypeParseTest.php
  120. +10 −0 tests/TypeReconciliation/TypeTest.php
  121. +45 −86 tests/UnusedVariableTest.php
  122. +40 −0 tests/ValueOfTest.php
2 changes: 1 addition & 1 deletion .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v3
- uses: mheap/github-action-required-labels@v4
with:
mode: minimum
count: 1
Loading