1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 18:17:55 +01:00
Commit Graph

10733 Commits

Author SHA1 Message Date
AndrolGenhald
5f9a8c9240 Fix types. 2022-02-23 22:12:32 -06:00
AndrolGenhald
43764f0c3d Add Reflection getAttributes analysis. 2022-02-23 22:12:32 -06:00
AndrolGenhald
1387f94324 Attribute analysis improvements. 2022-02-23 22:12:32 -06:00
orklah
3a85f49268
Merge pull request #7673 from VincentLanglet/pdoException
PDOException extends RuntimeException and can use int code errors
2022-02-23 13:45:57 +01:00
Bruce Weirdan
919775c937
Merge pull request #7719 from whatUwant/4.x 2022-02-23 01:10:06 +02:00
Bei Xiao
40cc346991 Update stub 2022-02-23 00:52:53 +02:00
Bei Xiao
0b24b07423 Specify required php version for test 2022-02-22 23:41:53 +02:00
Bei Xiao
c9666bbeb5 Reduce method complexity 2022-02-22 20:50:43 +02:00
Nicolas Giraud
9a95ba97e9 Also update the historical CallMap to be aligned with latest changes on CallMap. 2022-02-22 15:47:58 +01:00
Nicolas Giraud
b43c4af2d4 Cast the read streams to an array while looping over as it can be NULL. 2022-02-22 15:47:27 +01:00
Bei Xiao
6a3b5679fe Support interfaces extending enums 2022-02-22 16:04:56 +02:00
Nicolas Giraud
e1980122da Fix #3036: make argument $read of internal PHP function stream_socket nullable. 2022-02-22 12:49:29 +01:00
orklah
d2493e2656
Merge pull request #7715 from trowski/fix-ffc-in-loop
Fix first-class callable in loop
2022-02-22 07:06:03 +01:00
Aaron Piotrowski
97b5685f55
Fix first-class callable in loop 2022-02-21 18:37:20 -06:00
orklah
1a5b120081
Merge pull request #7713 from AndrolGenhald/bugfix/self-in-attribute
Use current context when analyzing attributes
2022-02-21 18:50:22 +01:00
Bruce Weirdan
35fa8b2ddd
Merge pull request #7708 from M1ke/4.x-config-threads-xsd 2022-02-21 19:22:03 +02:00
AndrolGenhald
103ec628b0 Improve tests. 2022-02-21 10:44:59 -06:00
AndrolGenhald
04c0db5aff Use current context when analyzing attributes (fixes #7710). 2022-02-21 10:38:50 -06:00
m1ke
628bf584c2 Alter config file to actually load threads param 2022-02-21 11:07:21 +00:00
m1ke
9d78c3e22a Add threads config to xsd 2022-02-21 10:26:34 +00:00
orklah
ad91df5ee1
Merge pull request #7692 from AndrolGenhald/bugfix/7685-attribute-analysis
Analyze attribute statements instead of constructing virtual statements.
2022-02-20 18:57:11 +01:00
Andrew Nagy
ceb7b95169 bump 2022-02-18 17:37:17 +00:00
Andrew Nagy
045bbe23a9 basic testing, disable log filtering 2022-02-18 17:29:09 +00:00
AndrolGenhald
0476ca7844 Fix trailing commas for PHP < 7.3. 2022-02-18 08:44:51 -06:00
AndrolGenhald
ea2f452c25 Analyze attribute statements instead of constructing virtual statements. 2022-02-18 08:18:34 -06:00
Bruce Weirdan
d8bec4c7aa
Merge pull request #7690 from dmitryuk/fix-enable-error 2022-02-18 06:34:15 +02:00
a.dmitryuk
8e1e0d1e5e style-ci 2022-02-18 10:33:35 +07:00
a.dmitryuk
dc8764153e Throw exception if file_put_contents failed 2022-02-18 10:05:23 +07:00
87d9a01f78 Add configuration for maximum size of shaped array 2022-02-15 14:09:08 +01:00
orklah
f72f2f6fbe
Merge pull request #7434 from zoonru/disable_var_parsing
Add configuration option to disable @var parsing everywhere except for properties.
2022-02-15 13:29:26 +01:00
eb3df40fbb
Add option to disable @var parsing everywhere except for properties. 2022-02-15 10:04:56 +01:00
Andrew Nagy
cc8c775abf fix linting 2022-02-15 00:18:49 +00:00
Andrew Nagy
29f0159b21 fix spacing 2022-02-14 22:19:19 +00:00
Andrew Nagy
6394e2d548 fix new lines in funcs with no params 2022-02-14 22:18:01 +00:00
Andrew Nagy
f8fd0fef60 fix hover 2022-02-14 22:03:07 +00:00
Andrew Nagy
e1306779a7 add ability to hide warnings 2022-02-14 21:38:58 +00:00
Andrew Nagy
c679692e06 Merge branch '4.x' into feature/upgrade-lsp 2022-02-14 21:06:01 +00:00
Andrew Nagy
1376bd8cdd extend codebase and put all LSP in the extended, cleanup hover outputs 2022-02-14 21:02:05 +00:00
Vincent Langlet
694157b2e0 PDOException extends RuntimeException and can use int code errors 2022-02-14 21:04:10 +01:00
orklah
06ce3adba5
Merge pull request #7664 from AndrolGenhald/bugfix/7613-unused-variable-in-try
Fix false positive for unused variable in try (fixes #7613).
2022-02-13 22:39:47 +01:00
AndrolGenhald
fd0ecf2528 Rename variable to be consistent with existing convention. 2022-02-13 15:34:21 -06:00
AndrolGenhald
32c389482c Fix issue with nested try block and add more tests. 2022-02-13 15:30:06 -06:00
AndrolGenhald
7b1599d783 Fix false positive for unused variable in try (fixes #7613). 2022-02-13 15:14:59 -06:00
Bruce Weirdan
7f304be4fb
Merge pull request #7659 from chloekek/ErrorException-__construct-line-parameter-name 2022-02-13 05:41:51 +02:00
Bruce Weirdan
915f80ad5f
Merge pull request #7660 from morozov/mysqli-connect-error 2022-02-13 05:14:32 +02:00
Sergei Morozov
946268e4fe
Update return type for mysqli::connect_error 2022-02-12 19:08:09 -08:00
Chloé Kekoa
092f729e46 Correct name of ErrorException::__construct $line param 2022-02-13 01:19:33 +01:00
Bruce Weirdan
293937fbc2
Merge pull request #7657 from weirdan/fix-7610 2022-02-13 01:32:21 +02:00
Bruce Weirdan
dc776d3ada
Suppress false-positive 2022-02-13 00:48:58 +02:00
Bruce Weirdan
45a19b3f3c
Honour global function suppressions for UndefinedFunction
Fixes vimeo/psalm#7610
2022-02-13 00:22:55 +02:00