1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
Commit Graph

5865 Commits

Author SHA1 Message Date
394e38599d Strict types everywhere 2023-10-19 13:12:06 +02:00
ec959e95d7 Merge remote-tracking branch 'origin/master' into strict_types 2023-10-19 11:28:39 +02:00
orklah
24168f6c58
Merge pull request #9794 from robchett/remove_TCallableArray_and_TCallableList
Improved type of callable-array
2023-10-17 23:38:12 +02:00
robchett
6de539e047 Fix falsable issues with file i/o functions 2023-10-10 00:04:16 +01:00
robchett
5a43e99d15 Fix falsable return issues from array functions, reset/key/shift 2023-10-10 00:04:16 +01:00
robchett
276a25de92 Fix falsable issues with json_encode 2023-10-10 00:04:16 +01:00
robchett
f94df41d76 Fix issues with nullable preg_replace 2023-10-10 00:04:16 +01:00
robchett
70507717c4 Fix falsable issues with ob_get_clean in tests 2023-10-09 23:42:59 +01:00
robchett
5e667ef35d Fix falsable calls to getcwd in /tests 2023-10-09 23:42:59 +01:00
robchett
55124181e7 Ignore internal null/false for unit test code 2023-10-09 23:42:59 +01:00
robchett
889bdca461 The function in a callable-array is a non-empty-string 2023-10-09 19:58:05 +01:00
RobChett
df6b5fbb75 Update tests for new callable-array shape 2023-10-09 18:04:02 +01:00
RobChett
922e57d86b Formatting 2023-10-09 18:04:02 +01:00
RobChett
f0c9bee421 Improve destructured type of callable-array 2023-10-09 18:04:02 +01:00
tuqqu
8edb886ce3 Test cases for DuplicateProperty issue for Trait 2023-10-09 01:13:25 +02:00
tuqqu
e0c804d732 Test cases for DuplicateProperty issue 2023-10-09 01:13:18 +02:00
orklah
1b12255fb1
Merge pull request #10183 from cgocast/master
Detect DoS by sleep vimeo#10178
2023-09-29 13:27:43 +02:00
Bruce Weirdan
4746f8378c
Merge branch '5.x' into upstream-master 2023-09-28 23:45:45 +02:00
orklah
2d3a625379
Merge pull request #10230 from ging-dev/lsp
feat(LSP): Improve the autocomplete for nested array shape
2023-09-28 23:42:02 +02:00
orklah
f57088646b
Merge pull request #10191 from boesing/bugfix/inherited-conditional-return-types
Resolve inherited conditional return types
2023-09-28 23:08:20 +02:00
orklah
bbcf50396d
Merge pull request #10189 from boesing/feature/inherited-assertions-v2
Inherited assertions v2
2023-09-28 23:07:15 +02:00
cgocast
fe0f1fc77d
Merge branch 'vimeo:master' into master 2023-09-28 12:08:10 +02:00
orklah
83485f3fcf
Merge pull request #10234 from tuqqu/block-mode-declare-check
Check for declare strict_types in block mode
2023-09-28 09:13:13 +02:00
orklah
1f979f4c33
Merge pull request #10227 from tuqqu/non-variable-reference-return
Introduce NonVariableReferenceReturn issue
2023-09-28 09:10:48 +02:00
orklah
a8ef5a213d
Merge pull request #10202 from gmessier/issue-handlers-priority
Issue handlers priority
2023-09-28 09:09:33 +02:00
orklah
a843c30950
Merge pull request #10207 from boesing/bugfix/issue-10203
Allow object assertions for `mixed` values
2023-09-28 09:08:43 +02:00
tuqqu
09fbe99f5b Check for declare strict types block mode 2023-09-26 20:59:06 +02:00
Bruce Weirdan
1945e92b85
Merge branch '5.x' into upstream-master 2023-09-26 19:09:17 +02:00
ging-dev
45807e27b8 feat(LSP): Improve the autocomplete for nested array shape 2023-09-26 01:52:23 +07:00
tuqqu
0ab4c2ac4b Introduce NonVariableReferenceReturn issue 2023-09-24 21:27:55 +02:00
Rudolph Gottesheim
3b775f4617 Allow class-string<T> where T is a union 2023-09-18 12:13:34 +02:00
robchett
03e8d19eec Only the binary op 'plus' works with two arrays
Treat the result of any other operation as int|float
Fixes #2123
2023-09-16 15:55:59 +01:00
Maximilian Bösing
3e100b15d9
bugfix: allow object assertions for mixed
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-15 20:19:54 +02:00
Guillaume Messier
ae427fd60e Add 'safe' methods to prevent overriding issueHandlers already defined in the configuration 2023-09-13 16:30:33 -04:00
Bruce Weirdan
7428e49b11
Merge branch '5.x' into upstream-master 2023-09-11 13:13:34 +02:00
Maximilian Bösing
eda55a2d27
qa: make assertions more strict as we do want exact matches
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-11 11:14:12 +02:00
Maximilian Bösing
3dc00518c6
qa: add test for inherited conditional templated return types
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 23:57:02 +02:00
Maximilian Bösing
56b719b1e6
qa: remove unnecessary lines from tests
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 22:17:30 +02:00
Maximilian Bösing
f6f7c20f36
qa: extend inherited assertion test
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 22:17:29 +02:00
Bruce Weirdan
ea1664f30b
Merge pull request #10190 from boesing/feature/array-object-array-key 2023-09-10 20:09:10 +03:00
Maximilian Bösing
7f8ec79243
qa: modify tests since array keys are not mixed for ArrayObject
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 16:06:56 +02:00
George Steel
e98ed16577
DateTimeZone::getName() always returns non-empty-string and cannot be constructed with an empty string
Signed-off-by: George Steel <george@net-glue.co.uk>
2023-09-09 23:48:49 +01:00
Tinjo Schöni
8fbe14a34b
Restore support for namespaced functions in referencedFunction config 2023-09-09 01:47:09 +02:00
cgocast
84e7423175 Detect DoS by sleep vimeo#10178 2023-09-06 15:58:08 +02:00
Bruce Weirdan
56310333dc
Merge branch '5.x' into upstream-master 2023-09-03 00:07:19 +02:00
Bruce Weirdan
cd8fc46554
Flag invalid declares 2023-09-02 23:41:50 +02:00
Bruce Weirdan
96d8394761
Merge branch '5.x' into upstream-master 2023-08-31 23:35:01 +02:00
robchett
d0c4d170b0
Apply psalm-inheritors to interfaces too 2023-08-31 23:12:10 +02:00
robchett
e23971ca29
InheritorViolation was only being triggered on grand-childen classes
Fixes #10167
2023-08-31 23:12:07 +02:00
Bruce Weirdan
480c876cc8
Merge branch 'master' into backed-enum-value-changed-to-atomic 2023-08-31 20:28:16 +02:00