1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 09:19:40 +01:00
Commit Graph

82 Commits

Author SHA1 Message Date
e19caf0a16 Fix 2023-10-21 14:20:08 +02:00
7761939832 Strict properties 2023-10-19 13:32:52 +02:00
1c9092e47a Update baseline 2023-10-19 13:13:27 +02:00
robchett
0bd4f9bffd Update baseline for remaining nullable/falsable issues 2023-10-10 00:04:16 +01:00
Bruce Weirdan
82a1806102
Merge branch '5.x' into upstream-master 2023-08-20 02:17:59 +02:00
Bruce Weirdan
ed9dacf486
Update baseline 2023-08-17 22:16:07 +02:00
Bruce Weirdan
76a62db2ea
Merge branch '5.x' into upstream-master 2023-08-13 19:46:13 +02:00
Yannick Gottschalk
a4de6d9dc0 Fix #9997
- make SimpleXmlElement and SimpleXmlIterator not a universal object crate
- added typed magic __get method to SimpleXmlElement
- adjusted tests to reflect new behaviour of SimpleXmlElement
- added tests
2023-08-05 17:07:08 +02:00
99dd34c67e
Merge remote-tracking branch 'hub/master' into psalm_v6 2023-07-29 15:04:52 +02:00
dd15e4768c
Fixes 2023-07-24 10:14:52 +02:00
79da33221f
Fixes 2023-07-24 09:48:35 +02:00
Jack Worman
f41da745d1 UnsupportedPropertyReferenceUsage 2023-05-12 14:12:12 -05:00
8078b6dcbf Fixes 2023-04-21 15:58:05 +02:00
andrew
b0e5df570d Fix iterable template replacement 2023-04-17 11:03:39 +03:00
orklah
24dc5d49b2
Merge pull request #9638 from boesing/bugfix/intersection-type-type-alias
Allow to intersect type alias with non-type-aliases
2023-04-16 21:14:21 +02:00
adrew
f0153721a4 Fix list template replacement 2023-04-15 18:46:22 +03:00
Maximilian Bösing
1071257245
refactor: resolve TTypeAlias in intersections
This also merges `TKeyedArray` into a one single keyed array. Therefore, this is not limited to aliases anymore.

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-04-11 23:22:04 +02:00
Andrew Nagy
7e9638b729 Merge branch 'master' of https://github.com/vimeo/psalm into feature/upgrade-lsp-v5 2023-03-02 18:10:13 +00:00
Andrew Nagy
5eed370fa5 fix outstanding CI issues 2023-03-02 18:02:23 +00:00
Bruce Weirdan
6811547707
Callmap is always non-empty
Fixes several baselined issues
2023-02-26 02:45:46 -04:00
Bruce Weirdan
5ccbc23cb8
Remove fixed issue from baseline 2023-02-22 21:22:49 -04:00
Alies Lapatsin
6ba9b1bb17 Merge branch 'master' into simplify-shepherd 2023-02-21 09:30:21 +01:00
Bruce Weirdan
8f4ceda8ce
Update baseline 2023-02-20 23:13:03 -04:00
Alies Lapatsin
d805f80f95 Merge branch 'master' into simplify-shepherd 2023-02-16 11:12:24 +01:00
Alies Lapatsin
f1e04f2dc3 Reorganize Shepherd logic to improve redability and support custom endpoint 2023-02-14 20:01:37 +01:00
Bruce Weirdan
954136679a
Fix crashes with invalid @psalm-check-type syntax
Fixes vimeo/psalm#9201
2023-02-09 17:49:49 -04:00
Matt Brown
234787bcd6 Fix logic bugs caught by better elseif checks 2023-02-03 00:30:42 -05:00
Leo Viezens
a9de67afd5 #7387 Add unrelated psalm errors to baseline 2023-01-30 15:46:29 +01:00
Jack Worman
32581a71fd cdata in baseline 2023-01-25 10:54:33 -05:00
Alies Lapatsin
2161e97c44 Cleanup baseline 2023-01-18 19:12:23 +01:00
Alies Lapatsin
cc30cf99b0 Merge remote-tracking branch 'origin/allow-to-specify-custom-shepherd-endpoint' into allow-to-specify-custom-shepherd-endpoint
# Conflicts:
#	psalm-baseline.xml
2023-01-18 19:07:42 +01:00
Alies Lapatsin
9cba3604fc Update baseline (add DeprecatedProperty) 2023-01-18 19:06:48 +01:00
Jack Worman
56f6dfecc8 Report unused baseline entries 2023-01-17 22:02:21 -05:00
Jack Worman
f9aa2d5ad3 Support constants in traits 2023-01-17 16:37:44 -05:00
Alies Lapatsin
f8e210f867 Update baseline (add DeprecatedProperty) 2023-01-14 17:29:39 +01:00
Marco Pivetta
bfded43614 Ensure that explode($d, lowercase-string) produces list<lowercase-string> types
This specific distinction seems to be very important for Psalm, as `explode()` and
`lowercase-string` are used aggressively across the codebase.

Also, this change expands the baseline by a few entries, since some of the code locations
instide Psalm itself have un-checked list destructuring operations, as well as array
access calls on potentially undefined array keys produced by `explode()`, which were
previously just `list<string>`, and are now `array{0: string, 1?: string}`, which is
a bit more precise.
2022-12-28 17:26:25 +01:00
Jack Worman
703a1e1698 @psalm-api 2022-12-23 16:13:46 -06:00
Jack Worman
896799dff4 Remove occurrences 2022-12-21 06:45:45 -06:00
ab2692fdd3 Update 2022-12-19 18:31:43 +01:00
c454a181cc Fixes 2022-12-18 15:00:15 +01:00
2c00c64304 Bypass bug 2022-12-16 19:18:33 +01:00
cca276768e
List refactoring v5 (#8820)
* Squash

* Remove BC break

* Suppress

* Possibly fix

* Fixes

* Fix test

* Trigger build

* Update psl

* Update psl

* Fixes

* Fixes

* Cleanup

* fix

* Fix build

* Do not consider never when getting the max count

* Add assertion

* Cleanup

* Fix

* Cleanup
2022-12-13 21:40:19 +01:00
d0be59e16e
Immutable unions (#8627)
* Immutable CodeLocation

* Remove excess clones

* Remove external clones

* Remove leftover clones

* Fix final clone issue

* Immutable storages

* Refactoring

* Fixes

* Fixes

* Fix

* Fix

* Fixes

* Simplify

* Fixes

* Fix

* Fixes

* Update

* Fix

* Cache global types

* Fix

* Update

* Update

* Fixes

* Fixes

* Refactor

* Fixes

* Fix

* Fix

* More caching

* Fix

* Fix

* Update

* Update

* Fix

* Fixes

* Update

* Refactor

* Update

* Fixes

* Break one more test

* Fix

* FIx

* Fix

* Fix

* Fix

* Fix

* Improve performance and readability

* Equivalent logic

* Fixes

* Revert

* Revert "Revert"

This reverts commit f9175100c8452c80559234200663fd4c4f4dd889.

* Fix

* Fix reference bug

* Make default TypeVisitor immutable

* Bugfix

* Remove clones

* Partial refactoring

* Refactoring

* Fixes

* Fix

* Fixes

* Fixes

* cs-fix

* Fix final bugs

* Add test

* Misc fixes

* Update

* Fixes

* Experiment with removing different property

* revert "Experiment with removing different property"

This reverts commit ac1156e077fc4ea633530d51096d27b6e88bfdf9.

* Uniform naming

* Uniform naming

* Hack hotfix

* Clean up $_FILES ref #8621

* Undo hack, try fixing properly

* Helper method

* Remove redundant call

* Partially fix bugs

* Cleanup

* Change defaults

* Fix bug

* Fix (?, hope this doesn't break anything else)

* cs-fix

* Review fixes

* Bugfix

* Bugfix

* Improve logic

* Update
2022-11-04 19:04:23 +01:00
3b3afd5369 Fixes 2022-10-17 13:10:12 +02:00
deaa6bd2ea Add purity issues to baseline 2022-10-10 12:53:13 +02:00
ef60a0c88c Fix properties-of on generics&intersections 2022-10-03 11:28:01 +02:00
3abd0b961f Immutable Unions 2022-10-03 10:45:36 +02:00
Aleksandr Zhuravlev
b4fdc3e326 Made most of callbacks static. Reworked some array_map() into foreach() 2022-04-09 21:58:26 +12:00
f0560728d8 Invert meaning of dupe_key 2022-04-01 12:19:29 +02:00
Bruce Weirdan
11e60fa261
Merge branch '4.x' into upstream-master 2022-02-11 03:51:48 +02:00