1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00
Commit Graph

12138 Commits

Author SHA1 Message Date
2b0e979ee9 Fixes 2022-11-29 17:43:27 +01:00
e821109343 Fixes 2022-11-29 17:41:46 +01:00
42380dbe87 Cleanup 2022-11-28 11:58:05 +01:00
c156807eca Update 2022-11-28 11:26:59 +01:00
8a4ba6dbe6 Cleanup 2022-11-28 10:53:54 +01:00
0bb70b3ce8 Update 2022-11-27 22:26:24 +01:00
389c6e63c1 Revert weird legacy logic 2022-11-27 22:18:23 +01:00
163330c1ba Merge remote-tracking branch 'o/master' into tnon_empty_list_refactoring 2022-11-27 21:54:42 +01:00
Bruce Weirdan
94dac9f9e7
Merge pull request #8783 from weirdan/bump-slevomat-coding-standard 2022-11-27 16:35:54 -04:00
0542b0e7f0 Fix list templates 2022-11-27 21:28:55 +01:00
Bruce Weirdan
ed36f2c2e8
Bump slevomat/coding-standard
This prevents issues with incompatible `phpstan/phpdoc-parser`.

`slevomat/coding-standard:8.3` claimed compatibility with
`phpstan/phpdoc-parser:^1.6`, but it fails with a fatal error when
`phpstan/phpdoc-parser:1.14` is installed (apparently there was a BC
break in a minor version of `phpstan/phpdoc-parser`).

Since 8.4 slevomat/coding-standard adopted a more conservative
dependency strategy, and they don't allow new untested versions of
`phpstan/phpdoc-parser`.

8.4 still allows PHP 7.2, so we should have no problems due to 7.x
  removal.
2022-11-27 16:16:52 -04: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
Bruce Weirdan
24769a2089
Merge pull request #8777 from weirdan/move-mockery-to-require-dev 2022-11-27 05:20:22 -04:00
Bruce Weirdan
a8e0ff52df
Move mockery to require-dev too 2022-11-26 21:24:13 -04:00
9a0ecf7ab2 Fixes 2022-11-26 21:39:43 +01:00
4f10cd3404 Cleanup 2022-11-26 21:32:18 +01:00
a6a6595557 Fix 2022-11-26 21:25:49 +01:00
abbaf88441 Improve assertions 2022-11-26 21:14:17 +01:00
0107a34e7e Cleanup logic 2022-11-26 21:10:47 +01:00
e89609bbab Fixes 2022-11-26 19:47:10 +01:00
e7f2fddf34 Fix 2022-11-26 19:22:28 +01:00
3178836e33 Fixes 2022-11-26 19:18:36 +01:00
c0b0dbc258 Fix bug 2022-11-26 19:03:19 +01:00
65886c94c6 Fixes 2022-11-26 18:51:24 +01:00
95e0614b2e Off-by-one fun 2022-11-26 18:44:11 +01:00
65f849a5a2 Cleanup 2022-11-26 18:31:25 +01:00
99bdc2faeb Cleanup 2022-11-26 18:21:36 +01:00
a342a26f0d Fix 2022-11-26 18:15:50 +01:00
156d629fbe Fix 2022-11-26 18:05:10 +01:00
34825fc0d3 Fix 2022-11-26 18:03:54 +01:00
582a7858f5 Fix 2022-11-26 18:02:14 +01:00
a9647155f2 Update 2022-11-26 17:53:51 +01:00
0f9936553f Cleanup 2022-11-26 17:44:30 +01:00
d0d7c46d26 Fix 2022-11-26 17:37:48 +01:00
45c26d0cbf Merge remote-tracking branch 'origin/master' into tnon_empty_list_refactoring 2022-11-26 17:30:48 +01:00
c823c87ab4 Cleanup 2022-11-26 17:27:40 +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
1c32a22c2c Fix 2022-11-26 17:16:30 +01:00
700e066539 Fixes 2022-11-26 17:11:41 +01:00
51e6b1155d Cleanup 2022-11-26 17:06:12 +01:00
546f2b325b Cleanup 2022-11-26 16:27:32 +01:00
3f710a80af Cleanup 2022-11-26 16:23:22 +01:00
e2da9c9dc4 Cleanup 2022-11-26 16:21:27 +01:00
0a20c10e00 Refactoring 2022-11-26 15:54:46 +01:00
120ba1f64c Refactoring 2022-11-26 15:53:16 +01:00
864a76459e Cleanup 2022-11-26 15:47:24 +01:00
fca60dcae8 Cleanup 2022-11-26 15:45:01 +01:00