Alies Lapatsin
|
d3a6da7418
|
Fix coding style issue
|
2023-06-01 16:38:29 +02:00 |
|
Alies Lapatsin
|
f114858be9
|
Update array shape
|
2023-06-01 14:37:05 +02:00 |
|
Alies Lapatsin
|
83063272e5
|
Add package versions to Shepherd payload
|
2023-06-01 14:32:25 +02:00 |
|
orklah
|
e55530d627
|
Merge pull request #9845 from lptn/shepherd-use-list-of-issues
Shepherd: send a list of issues (instead of array with int keys)
|
2023-06-01 13:36:05 +02:00 |
|
Alies Lapatsin
|
7b7d823b07
|
Use better var name
|
2023-06-01 10:51:10 +02:00 |
|
orklah
|
75baaf7889
|
Merge pull request #9844 from kkmuffme/property-no-set-in-constructor-abstract-false-positive
PropertyNotSetInConstructor should not report for abstract constructors
|
2023-06-01 07:21:23 +02:00 |
|
kkmuffme
|
103e7b343c
|
PropertyNotSetInConstructor should not report for abstract constructors
since they do not have any code
Fix https://github.com/vimeo/psalm/issues/9830
|
2023-06-01 01:38:33 +02:00 |
|
kkmuffme
|
322878b1d7
|
code style
|
2023-06-01 01:33:12 +02:00 |
|
kkmuffme
|
c17564d27c
|
code style and false positive shepherd
|
2023-06-01 01:25:46 +02:00 |
|
kkmuffme
|
1f2db5f31c
|
Allow if/false assert for same variable to allow array/list distinction
Fix https://github.com/vimeo/psalm/issues/9037
|
2023-06-01 01:08:06 +02:00 |
|
orklah
|
a762b6c3bb
|
Merge pull request #9841 from kkmuffme/sprintf-basic-return-type-provider
sprintf basic non-empty-string return type provider
|
2023-05-31 23:36:03 +02:00 |
|
Alies Lapatsin
|
5e7e067798
|
Merge branch 'master' into shepherd-use-list-of-issues
# Conflicts:
# src/Psalm/Plugin/Shepherd.php
|
2023-05-31 23:11:56 +02:00 |
|
orklah
|
5b2efad55b
|
Merge pull request #9846 from lptn/use-consts-for-issue-severity
Introduce and use `IssueData` constants for severity levels
|
2023-05-31 23:04:13 +02:00 |
|
Alies Lapatsin
|
bf1a7365d2
|
Use PHPStorm output format by default on JetBrains terminals
|
2023-05-31 13:30:52 +02:00 |
|
Alies Lapatsin
|
3700ab6c61
|
Fix RedundantConditionGivenDocblockType issues
|
2023-05-31 13:11:54 +02:00 |
|
Alies Lapatsin
|
67648ac248
|
Use new IssueBuffer constants
|
2023-05-31 13:00:16 +02:00 |
|
Alies Lapatsin
|
174cd5c0fe
|
Introduce and use IssueData constants for severity
they are not the same as Config::REPORT_* constants
|
2023-05-31 12:38:15 +02:00 |
|
Alies Lapatsin
|
2fa943a8a6
|
Shepherd: send a list of issues (instead of array with int keys)
as result Shepherd will send an array is issues instead of object with "random" numeric keys
|
2023-05-31 12:24:49 +02:00 |
|
kkmuffme
|
8606d5585f
|
sprintf basic non-empty-string return type provider
Fix https://github.com/vimeo/psalm/issues/9819
This PR is a starting point for improving the sprintf return type and eventually validate the format, param types and param count.
(see https://github.com/vimeo/psalm/issues/9817, https://github.com/vimeo/psalm/issues/9818)
|
2023-05-30 22:11:17 +02:00 |
|
kkmuffme
|
9d7d4bff28
|
non-empty-string always returs non-empty-string, fix tests
|
2023-05-30 16:44:23 +02:00 |
|
kkmuffme
|
25c7f37a44
|
add test, fix wrong test and fix shepherd
|
2023-05-30 16:29:47 +02:00 |
|
kkmuffme
|
f9f1cc244b
|
dirname returns non-empty-string when a non-empty-string is passed and level is 1
|
2023-05-30 16:09:50 +02:00 |
|
orklah
|
2bbfca6d9f
|
Merge pull request #9829 from klimick/map-closed-inheritance-to-union
Mapping closed inheritance to union during assertion
|
2023-05-29 20:14:31 +02:00 |
|
Yannick Gottschalk
|
a41eb35b24
|
Fix #9824
|
2023-05-28 17:37:16 +02:00 |
|
klimick
|
56d7b3793e
|
Map closed inheritance to union
|
2023-05-27 13:39:56 +03:00 |
|
Jack Worman
|
f279c39503
|
GH-9825
|
2023-05-26 18:03:05 -04:00 |
|
Demmie
|
72b4ab9310
|
Use preg_split instead of explode
This also accounts for Windows dir separators
and duplicated wildcards.
|
2023-05-24 15:28:41 -04:00 |
|
Demmie
|
116795abc4
|
Fix reported type issues
|
2023-05-24 14:06:53 -04:00 |
|
Demmie
|
317c683644
|
Return file_exists to glob files
|
2023-05-24 01:27:48 -04:00 |
|
Demmie
|
cab10721e6
|
Add a support for multilevel glob wildcards
This works just like in Python with "**".
|
2023-05-24 01:13:26 -04:00 |
|
orklah
|
f90118cdea
|
Merge pull request #9805 from orklah/memory-psalter
allow using more than 8G of memory in psalter
|
2023-05-22 23:19:03 +02:00 |
|
orklah
|
f65d53f32e
|
fix CS
|
2023-05-22 23:16:17 +02:00 |
|
orklah
|
d23616cafa
|
allow using more than 8G of memory in psalter
|
2023-05-22 23:06:02 +02:00 |
|
orklah
|
ed94de5146
|
fix offset for type param changes
|
2023-05-21 18:56:54 +02:00 |
|
RobChett
|
100907b61f
|
Improve return types of pow()
|
2023-05-15 01:22:45 +01:00 |
|
Jack Worman
|
f41da745d1
|
UnsupportedPropertyReferenceUsage
|
2023-05-12 14:12:12 -05:00 |
|
|
acdbffbb34
|
cs-fix
|
2023-05-11 19:23:33 +02:00 |
|
|
ffd363d7b8
|
Enable opcache if it is installed
|
2023-05-11 16:51:37 +02:00 |
|
Valentin Vion
|
3d122a745f
|
Removed return type false from date and gmdate
|
2023-05-09 12:02:44 +08:00 |
|
orklah
|
d4c5f85eb0
|
Merge pull request #9687 from robchett/limit_inheritance
WIP - Limit inheritance to a subset of classes #1450
|
2023-05-07 22:46:05 +02:00 |
|
RobChett
|
aa85669645
|
Change the Issue type and add documentation
|
2023-05-07 11:34:33 +01:00 |
|
RobChett
|
cad5288484
|
Support interfaces
|
2023-05-07 11:33:39 +01:00 |
|
RobChett
|
de877f1dcf
|
Add support for @psalm-inheritors
|
2023-05-07 11:33:38 +01:00 |
|
kkmuffme
|
ad7be63c0b
|
fix tests/internal code
@var comments needed due to https://github.com/vimeo/psalm/issues/9754 and https://github.com/vimeo/psalm/issues/9753
|
2023-05-06 19:18:27 +02:00 |
|
orklah
|
0ea2a6a567
|
Merge pull request #9742 from fluffycondor/allow-phpdoc-dynamic-properties
Allow dynamic properties from PHPDoc
|
2023-05-06 15:56:16 +02:00 |
|
andrew
|
cfd0f062f7
|
Fix union argument types check against templated param
|
2023-05-06 16:01:16 +03:00 |
|
orklah
|
8d15fa1d79
|
Merge pull request #9735 from tscni/fix/missing-global-override-file-storage
Fix missing global class type when scanning cached files
|
2023-05-05 22:08:21 +02:00 |
|
fluffycondor
|
86fd504965
|
Allow dynamic properties from PHPDoc
|
2023-05-04 18:49:41 +02:00 |
|
orklah
|
7483f4d809
|
Merge pull request #9740 from edsrzf/better-property-error
Fix OverriddenPropertyAccess error message
|
2023-05-04 18:49:00 +02:00 |
|
orklah
|
f8895edf4d
|
Merge pull request #9738 from klimick/fix-invalid-cast-for-templated-class-string
Fix invalid cast for templated class-string
|
2023-05-04 18:43:41 +02:00 |
|
orklah
|
32bd8f66e6
|
Merge pull request #9739 from klimick/match-paradoxical-condition-with-complex-expr
Fix ParadoxicalCondition with complex match expression
|
2023-05-04 18:39:17 +02:00 |
|
andrew
|
a18eb447e0
|
Test match on class const fetch
|
2023-05-04 17:21:50 +03:00 |
|
andrew
|
948ece9dea
|
Fix string negation to never
|
2023-05-04 15:34:18 +03:00 |
|
Tinjo Schöni
|
8c9b0eebf4
|
Scan configured global types
|
2023-05-04 12:05:32 +02:00 |
|
Evan Shaw
|
d2f0f6ce30
|
Fix OverriddenPropertyAccess error message
The message previously didn't mention the base class, which made it
confusing.
|
2023-05-04 21:51:16 +12:00 |
|
klimick
|
ac8d489413
|
Fix ParadoxicalCondition with complex match expression
|
2023-05-04 11:58:39 +03:00 |
|
andrew
|
57b3876796
|
Fix invalid cast for templated class-string
|
2023-05-04 11:25:52 +03:00 |
|
orklah
|
a5effd2d2d
|
Merge pull request #9681 from robchett/no-seal-methods_and_no-seal-propeties
Add support for @psalm-no-seal-properties and @psalm-no-seal-methods
|
2023-05-02 19:20:34 +02:00 |
|
tuqqu
|
46f5bc8bd7
|
Introduce BeforeExpressionAnalysisEvent, fix array comparison
|
2023-04-30 12:12:00 +02:00 |
|
tuqqu
|
38b40a9fe2
|
Introduce BeforeExpressionAnalysisEvent
|
2023-04-30 03:50:30 +02:00 |
|
orklah
|
4843a350a0
|
Merge pull request #9720 from Jean85/fix-ambiguous-constant-inheritance
Fix ambiguous constant inheritance false positive
|
2023-04-28 23:22:31 +02:00 |
|
Alessandro Lai
|
e8bc9a6209
|
Do not emit AmbiguousConstantInheritance when inheriting from the same statement
|
2023-04-28 22:52:22 +02:00 |
|
klimick
|
0ae1b31efc
|
Fix UnevaluatedCode false positive at declare(strict_types=1)
|
2023-04-27 23:11:14 +03:00 |
|
orklah
|
c059388274
|
Merge pull request #9709 from Nicelocal/clone_leftovers
Remove clone leftovers from immutable refactoring
|
2023-04-25 20:47:59 +02:00 |
|
|
481a5bd61d
|
Fix date return type provider
|
2023-04-25 11:41:39 +02:00 |
|
|
8eacb0f003
|
Remove clone leftovers from immutable refactoring
|
2023-04-25 11:09:54 +02:00 |
|
orklah
|
720f3f1dc2
|
Merge pull request #9704 from Nicelocal/fix_new_template_object
Allow running new on template objects
|
2023-04-24 16:29:34 +02:00 |
|
|
8288b00ef9
|
Allow running new on template objects
|
2023-04-24 13:08:12 +02:00 |
|
orklah
|
2b68046115
|
Merge pull request #9694 from Nicelocal/unsealed_array_generic_syntax
Implement unsealed array generic syntax
|
2023-04-24 12:50:57 +02:00 |
|
orklah
|
eae04f25f6
|
Merge pull request #9693 from Nicelocal/fix_9692
Fix #9692
|
2023-04-24 12:48:20 +02:00 |
|
orklah
|
41796e324a
|
Merge pull request #9700 from klimick/method-contextual-closure-arg-inference
Contextual closure arg inference for class methods
|
2023-04-24 12:47:38 +02:00 |
|
Evan Shaw
|
82090f58c5
|
Handle included directory paths without crashing
If an include or require resolves to a directory, this now raises a
MissingFile error rather than throwing an unhandled UnexpectedValueException.
|
2023-04-24 11:09:48 +12:00 |
|
klimick
|
88c444a8cc
|
Contextual closure arg inference for class methods
|
2023-04-23 23:40:44 +03:00 |
|
|
8078b6dcbf
|
Fixes
|
2023-04-21 15:58:05 +02:00 |
|
|
05e92054e0
|
Cleanup
|
2023-04-21 15:53:47 +02:00 |
|
|
8d246d6af4
|
Remove leftovers
|
2023-04-21 15:52:21 +02:00 |
|
|
b77ed37d45
|
Rewrite
|
2023-04-21 15:49:37 +02:00 |
|
|
86436507ea
|
Immediately check for closing }
|
2023-04-21 14:19:42 +02:00 |
|
|
d8b85f1c04
|
Implement unsealed array generic syntax
|
2023-04-21 14:05:05 +02:00 |
|
|
abead05303
|
Fix syntax
|
2023-04-21 12:38:02 +02:00 |
|
|
b8672949ec
|
Fix #9692
|
2023-04-21 12:33:08 +02:00 |
|
orklah
|
a97b6b8a5e
|
Merge pull request #9685 from Nicelocal/avoid_wrong_assertions
Avoid wrong assertions when working with objects returned by methods
|
2023-04-21 11:34:15 +02:00 |
|
orklah
|
40d4e560bc
|
Merge pull request #9691 from robchett/date_gmdate_return_type
Add return type provider for date/gmdate
|
2023-04-21 11:33:02 +02:00 |
|
orklah
|
1dcc4c4fe0
|
Merge pull request #9686 from Nicelocal/fix_is_object
Fix is_object assertions on final classes
|
2023-04-21 11:32:25 +02:00 |
|
RobChett
|
1a1d9c9bf5
|
Add return type provider for date/gmdate
|
2023-04-21 08:12:49 +01:00 |
|
orklah
|
b781bd922e
|
Merge pull request #9679 from robchett/mixedAssignment_from_template_var
Don't throw UnnecesseryVarAnnotation when hinting a mixed template var
|
2023-04-20 23:52:52 +02:00 |
|
orklah
|
0dcaf1c706
|
Merge pull request #9678 from robchett/mb_strtolower_maintain_non_empty
Return a non-empty-(lowercase-)string from mb_strtolower
|
2023-04-20 23:44:21 +02:00 |
|
RobChett
|
74c1576b9c
|
Return a non-empty-(lowercase-)string from mb_strtolower
|
2023-04-20 15:54:13 +01:00 |
|
RobChett
|
9083e0a7a3
|
Check for the existence of the 'mixed' key to detect untyped parameters
|
2023-04-20 15:45:17 +01:00 |
|
|
9da49f18bc
|
Fix
|
2023-04-20 15:03:36 +02:00 |
|
|
88f6be1213
|
Fix
|
2023-04-20 14:17:40 +02:00 |
|
|
baff6fb36a
|
fix is_object assertions
|
2023-04-20 14:03:35 +02:00 |
|
|
efb5aed879
|
Avoid wrong assertions when working with objects returned by methods
|
2023-04-20 13:00:28 +02:00 |
|
RobChett
|
4d9d7cebd9
|
Add support for @psalm-no-seal-properties and @psalm-no-seal-methods
|
2023-04-20 07:47:50 +01:00 |
|
RobChett
|
0a40286830
|
Don't throw UnnecesseryVarAnnotation when hinting a mixed template var
|
2023-04-19 21:23:40 +01:00 |
|
orklah
|
5efddb4201
|
Merge pull request #9675 from robchett/master
Valid array access on a non-empty-string yields a non-empty-string
|
2023-04-19 21:12:29 +02:00 |
|
RobChett
|
836953eb7d
|
Switch TSingleLetter to extend TNonEmptyString instead of TString as it is more precise
|
2023-04-19 19:27:25 +01:00 |
|
orklah
|
76ebf54262
|
Merge pull request #9676 from Nicelocal/fix_callable_union_comparison
Fix comparison of unions of multiple callables
|
2023-04-19 13:02:01 +02:00 |
|
orklah
|
51d14a28b7
|
Merge pull request #9670 from danog/improve_opcache
Avoid verbose opcache logging
|
2023-04-19 12:00:03 +02:00 |
|
|
558239ecb0
|
cs-fix
|
2023-04-19 11:39:44 +02:00 |
|