Bruce Weirdan
14d48a0dde
Merge pull request #8817 from weirdan/fix-7863
...
Fixes https://github.com/vimeo/psalm/issues/7863
2022-12-03 01:29:01 -04:00
Bruce Weirdan
a157743140
Prevent crashes on conditional traits
...
Fixes vimeo/psalm#7863
2022-12-03 01:21:10 -04:00
Bruce Weirdan
e64913c377
Merge pull request #8816 from weirdan/fix-8313
...
Fixes https://github.com/vimeo/psalm/issues/8313
2022-12-03 01:00:23 -04:00
Bruce Weirdan
4d8af74d92
Don't crash when accessing immutable static property
...
Fixes vimeo/psalm#8313
2022-12-03 00:51:22 -04:00
Bruce Weirdan
35822f14d9
Merge pull request #8814 from weirdan/fix-8377
...
Fixes https://github.com/vimeo/psalm/issues/8377
2022-12-02 23:38:57 -04:00
Bruce Weirdan
7364988934
Fix crash when using phantom methods as first-class callable
...
Fixes vimeo/psalm#8377
2022-12-02 23:28:22 -04:00
Bruce Weirdan
4defa177c8
Merge pull request #8774 from bdsl/report-by-issue-type-severity
2022-12-01 21:23:35 -04:00
Barney Laurance
1dbdf7882c
Code style fix
2022-12-02 00:40:01 +00:00
Barney Laurance
ad57727593
Sort issue by position in codebase in ByIssueLevelAndTypeReport if level & type equal
...
PHP sorting only became stable in 8.0. For previous versions we would
still like duplicate issues to be sorted into a logical order.
2022-12-02 00:27:51 +00: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
d6c7c86362
Remove unecassary subheadings in error levels documentation
2022-12-02 00:07:37 +00:00
Barney Laurance
cd18cdc554
Re-order list of errors in docs
...
I think it makes more sense to have the errors that almost always appear
(level 7 errors) next to the errors that always appear, instead of
the level 1, least likely to appear errors being next to the ones that
always appear.
This also makes the order more similar to that output by the new
--by-issue-level format report.
Some time it might be nice to see if there's a way to auto generate most
of this docs page from the actual issue class definitions, or have
a test that checks the list of issues for each level is accurate and
complete.
2022-12-02 00:04:43 +00:00
Barney Laurance
9e63bf6a4d
Minor code edits in ByIssueLevelAndType
2022-12-02 00:04:43 +00:00
Bruce Weirdan
c1d2e5618a
Set vimeo/psalm version explicitly
2022-12-01 19:59:51 -04:00
Barney Laurance
3f5616672a
Add test for ByIsueLevelAndTypeReport
2022-12-01 23:27:53 +00:00
Barney Laurance
386aa27f4c
Improve issue level and type report
2022-12-01 23:00:48 +00:00
Barney Laurance
3bc3f1c273
Fix report name: Issue level, not issue severity
2022-12-01 22:11:29 +00:00
Barney Laurance
4fde49313e
Fix implicit constant visibility
2022-12-01 22:05:27 +00:00
Barney Laurance
aea1c5603d
Reduce function visibility
...
Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
2022-12-01 22:03:19 +00:00
Barney Laurance
32881a3c65
Add comments
2022-12-01 22:02:09 +00:00
Barney Laurance
6bde0d3a68
Delete unused code
2022-12-01 22:02:08 +00:00
Barney Laurance
b70d3e228e
WIP: Add new option --output-format=by-issue-severity to sort issues by level and type
2022-12-01 22:02:08 +00:00
orklah
8e43460a1a
Merge pull request #8808 from p810/add-forbiddenFunctions-to-configuration-docs
...
Adds documentation for the `forbiddenFunctions` config option
2022-12-01 21:24:36 +01:00
orklah
433e272149
Merge pull request #8809 from danog/fix_8806
...
Fix #8806
2022-12-01 21:00:40 +01:00
796462961d
Fix
2022-12-01 20:18:07 +01:00
7f15d47c19
Add tests
2022-12-01 20:14:37 +01:00
3150ad2b27
Fix #8806
2022-12-01 20:12:20 +01:00
Payton Bice
02329227d8
Adds documentation for the forbiddenFunctions
config option
2022-12-01 13:42:02 -05:00
orklah
b4aa951caa
Merge pull request #8798 from orklah/min_count
...
fix sealed combination
2022-12-01 18:35:02 +01:00
orklah
aee4605041
Merge pull request #8624 from kkmuffme/check-never-return-more-strictly-v5
...
check "never" return type more strictly
2022-12-01 18:23:04 +01:00
Bruce Weirdan
c6551a61e7
Merge pull request #8805 from sasezaki/patch-1
2022-12-01 11:59:24 -04:00
sasezaki
de33d94802
Update installation.md - 5
requires PHP >= 7.4
2022-12-02 00:35:56 +09: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
orklah
3957eb753a
fix sealed array combination
2022-11-30 23:26:34 +01:00
orklah
bce4b55525
Merge pull request #8796 from orklah/reconcileFalse
...
handle true/false reconciliation consistently, fix #8795
2022-11-30 20:35:44 +01:00
orklah
ea4fe7422a
Merge pull request #8794 from danog/fix_8772
...
Ignore non-existing classes during initial scan of intersection types
2022-11-30 20:35:29 +01:00
orklah
40fa8282ee
CS fix
2022-11-30 20:18:09 +01:00
orklah
229f613b8e
handle true/false reconciliation consistently, fix #8795
2022-11-30 20:15:11 +01:00
9c35ed2eb7
Ignore non-existing classes during initial scan of intersection types
2022-11-30 17:33:58 +01:00
Emmanuel GUITON
fcbd23c801
Style fix.
2022-11-30 17:33:28 +01:00
Emmanuel GUITON
0d9d0ed60d
Fixes vimeo#8112
2022-11-30 17:17:38 +01:00
Bruce Weirdan
870f5817d2
Merge pull request #8789 from weirdan/defer-cache-directory-creation
...
Fixes https://github.com/vimeo/psalm/issues/4267
2022-11-30 10:52:17 -04:00
orklah
4e177bf0c9
Merge pull request #8790 from malarzm/patch-1
...
[Docs] Conditional types - remove unfinished sentence
2022-11-30 07:06:01 +01:00
Matthew Brown
7877570aaf
Remove CallMapTest.php from Psalm self-analysis
...
FIle has a very heavy include that doubles Psalm's time
2022-11-30 00:28:00 -05:00
Maciej Malarz
28188d113a
Remove unfinished sentence
2022-11-29 23:52:27 +01:00
Bruce Weirdan
6fd2ff14e7
Document BC break
2022-11-29 04:29:26 -04:00