1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
Commit Graph

5249 Commits

Author SHA1 Message Date
1aa1daa67d Update tests 2022-12-03 15:34:37 +01:00
4c47d50d91 Update 2022-12-02 21:35:05 +01:00
55edadcb65 Merge remote-tracking branch 'origin/master' into tnon_empty_list_refactoring 2022-12-02 21:03:47 +01:00
23b0ac012a Hack 2022-12-02 21:03:39 +01:00
4847165254 Fixes 2022-12-02 17:51:49 +01:00
b07aba9f47 Fix 2022-12-02 15:32:58 +01:00
a5df5660d4 Fixes 2022-12-02 15:16:00 +01:00
8aecadda83 Fixes 2022-12-02 14:03:51 +01:00
a0bf4cf371 Fixes 2022-12-02 13:58:15 +01:00
096b39022a Cleanup 2022-12-02 13:46:35 +01:00
7e571f4df1 Fixes 2022-12-02 13:00:50 +01:00
54600ca967 Fixup 2022-12-02 12:40:32 +01:00
e50b351512 Cleanup 2022-12-02 12:22:16 +01:00
Barney Laurance
a29f65ecfe Fix too lax function visibility in test 2022-12-02 00:24:44 +00:00
Barney Laurance
6693421379 Code style fix 2022-12-02 00:24:05 +00:00
Barney Laurance
54239838fe Fix error in ByIssueLvelAndTypeReport heading 2022-12-02 00:17:27 +00:00
Barney Laurance
699ee344d4 Indent heredoc in test 2022-12-02 00:14:43 +00:00
Barney Laurance
3f5616672a Add test for ByIsueLevelAndTypeReport 2022-12-01 23:27:53 +00:00
orklah
433e272149
Merge pull request #8809 from danog/fix_8806
Fix #8806
2022-12-01 21:00:40 +01:00
03fc544af4 Fix 2022-12-01 20:17:17 +01:00
7f15d47c19 Add tests 2022-12-01 20:14:37 +01:00
d24a243d80 Fix 2022-12-01 19:19:37 +01:00
orklah
b4aa951caa
Merge pull request #8798 from orklah/min_count
fix sealed combination
2022-12-01 18:35:02 +01:00
kkmuffme
694b7d8975 check "never" return type more strictly
* require explicit "never" return type when function always exits, except if it only throws
* error if function does not exit, but return type explicitly contains "never"
* Fix: https://github.com/vimeo/psalm/issues/8175
* Fix: https://github.com/vimeo/psalm/issues/8178
2022-12-01 14:51:58 +01:00
orklah
2da4bf98d6 add test 2022-11-30 23:45:55 +01:00
c156807eca Update 2022-11-28 11:26:59 +01:00
8a4ba6dbe6 Cleanup 2022-11-28 10:53:54 +01:00
163330c1ba Merge remote-tracking branch 'o/master' into tnon_empty_list_refactoring 2022-11-27 21:54:42 +01:00
2b9512ef50 Generate properly shaped lists when appending 2022-11-27 20:52:42 +01:00
909edb48e3 Fixes 2022-11-27 20:30:35 +01:00
Bruce Weirdan
8fa35c2228
Variables should outlive namespaces (#8779)
Variables in PHP are not namespaced. In other words, namespaces share
the context with the file they are located in.

See https://3v4l.org/2qvrC

Fixes vimeo/psalm#8778
2022-11-27 10:45:40 -05:00
Bruce Weirdan
05b8e0eea6
Replace all references to static variables when moving class (#8780)
Previously `psalter` would only replace the first occurence of the
property access. Now it replaces all properties (by keeping the old name
unknown in the context).
2022-11-27 10:44:53 -05:00
9a0ecf7ab2 Fixes 2022-11-26 21:39:43 +01:00
0107a34e7e Cleanup logic 2022-11-26 21:10:47 +01:00
3178836e33 Fixes 2022-11-26 19:18:36 +01:00
c0b0dbc258 Fix bug 2022-11-26 19:03:19 +01:00
95e0614b2e Off-by-one fun 2022-11-26 18:44:11 +01:00
45c26d0cbf Merge remote-tracking branch 'origin/master' into tnon_empty_list_refactoring 2022-11-26 17:30:48 +01:00
Matthew Brown
1819a2d880
Add diagnostic message when shape fields are missing (#8762)
* Add a simple diagnostic for missing array shape fields

* Fix dumb mistakes

* Allow nested shape extra keys to prompt warning too
2022-11-26 11:26:36 -05:00
5b1204279d Cleanup 2022-11-26 14:33:40 +01:00
Matthew Brown
a0e4468a9a
Simplify assertions generated by an array_key_exists check (#8763) 2022-11-25 12:16:37 -05:00
Bruce Weirdan
0b1af26011
Merge pull request #8755 from weirdan/switch-from-prophecy-to-mockery 2022-11-25 03:42:58 -04:00
Bruce Weirdan
6c77daf1f4
Upgrade mockery plugin
and other assorted fixes for PHP 8.2
2022-11-25 03:33:10 -04:00
Bruce Weirdan
1183476089
CS fix 2022-11-24 21:23:30 -04:00
Bruce Weirdan
42b71f5eae
Switch from phpspec/prophecy to mockery/mockery
It provides similar functionality, but is a bit more alive and does not
prevent installation with PHP 8.2
2022-11-24 21:20:21 -04:00
orklah
583dabee99
Merge pull request #8753 from orklah/8745
Fix #8745
2022-11-24 20:21:28 +01:00
orklah
b53a9c322c Fix test incompatible with PHP 7.4 2022-11-24 20:06:02 +01:00
orklah
ea4b099c66 Fix #8745 2022-11-24 20:02:04 +01:00
orklah
bca202bf5e
Merge pull request #8749 from Nicelocal/fix_8748
Fix #8748
2022-11-24 19:44:44 +01:00
5ac60ddea0 Add tests 2022-11-24 19:31:53 +01:00