1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00
Commit Graph

13886 Commits

Author SHA1 Message Date
Bruce Weirdan
d39a103e60
Merge pull request #10138 from weirdan/more-gc_status-fields 2023-08-21 07:29:42 +02:00
Bruce Weirdan
97fc480aca
Added more gc_status return fields
Fixes vimeo/psalm#10022
2023-08-21 07:10:24 +02:00
Bruce Weirdan
e6aa3fd23c
Extract the list of impure functions into its own dictionary 2023-08-21 06:14:56 +02:00
Bruce Weirdan
98d1ca9762
Merge branch '5.x' into upstream-master 2023-08-21 01:07:55 +02:00
Bruce Weirdan
5c774aca47
Merge pull request #10135 from weirdan/correct-exit-code-for-wrong-version-format 2023-08-21 01:07:30 +02:00
Bruce Weirdan
46ebe72e69
Correct exit code for invalid version format
Addresses https://github.com/vimeo/psalm/pull/10129#discussion_r1299442729
2023-08-21 00:14:26 +02:00
Bruce Weirdan
828f6618ca
Merge branch '5.x' into upstream-master 2023-08-20 23:56:55 +02:00
Bruce Weirdan
e085b73f2f
Merge pull request #10134 from weirdan/fix-10132 2023-08-20 23:54:31 +02:00
Bruce Weirdan
1474340cf2
Fix crash on array access to undefined class 2023-08-20 23:45:30 +02:00
Bruce Weirdan
c99a7b594f
Update branch aliases 2023-08-20 22:50:12 +02:00
Bruce Weirdan
efe455fce3
Merge pull request #9517 from weirdan/typed-values-for-literal-numeric-types 2023-08-20 08:04:26 +02:00
Bruce Weirdan
c62be2b126
Added BC note 2023-08-20 07:43:55 +02:00
Bruce Weirdan
9aade96444
Make TLiteralFloat::$value and TLiteralInt::$value typed
Fixes vimeo/psalm#9516
2023-08-20 07:39:25 +02:00
Bruce Weirdan
82a1806102
Merge branch '5.x' into upstream-master 2023-08-20 02:17:59 +02:00
Bruce Weirdan
0922fa14d0
Merge pull request #10129 from Nitamet/10084-incorrect-version-checking 2023-08-18 23:44:31 +02:00
Nitamet
005eed3d06 Throw and catch exception when specified PHP version is invalid 2023-08-19 00:14:39 +03:00
Nitamet
18b74b1814 Add 8.3 as supported version 2023-08-19 00:01:17 +03:00
Nitamet
2c7391a649 Add versions 5.4-7.3 as supported 2023-08-18 20:32:05 +03:00
Nitamet
5f40d26539 Fix PHP version checking
Separate condition to check both cases if the specified string is a valid version and if it is supported
Remove unsupported versions up to 7.4 from regex
2023-08-18 20:09:17 +03:00
Bruce Weirdan
bf8e150f8f
Merge pull request #10123 from weirdan/fix-crash-with-removed-assertion 2023-08-17 22:23:23 +02:00
Bruce Weirdan
ed9dacf486
Update baseline 2023-08-17 22:16:07 +02:00
Bruce Weirdan
73ce16de96
Fixes crash when assertion array is not a list
Fixes vimeo/psalm#9984
2023-08-17 22:10:32 +02:00
Bruce Weirdan
28f5b1eb54
Merge pull request #10122 from weirdan/strip_tags-allowed_tags-as-list 2023-08-17 21:48:31 +02:00
Bruce Weirdan
32445023d8
strip_tags()/$allowed_tags can accept arrays since 7.4
Fixes vimeo/psalm#4317
2023-08-17 21:36:47 +02:00
orklah
fb95bc0929
Merge pull request #10092 from mmcev106/respect-stubs-with-autoload-defined-require-path
Respect stubs in all cases
2023-08-16 18:11:35 +02:00
Mark McEver
09cdb3563d Commit to trigger unit tests after switching the base branch from 5.x to master in the PR 2023-08-15 09:29:48 -05:00
Evan Shaw
670bd6afce Filter baseline when checking individual files
This prevents reporting unused baseline entries for other files that
aren't being checked.
2023-08-15 21:16:18 +12:00
Bruce Weirdan
5c4cd066b7
Merge branch '5.x' into upstream-master 2023-08-13 23:54:33 +02:00
Bruce Weirdan
57f6359969
Merge pull request #10112 from weirdan/forbid-faulty-parser 2023-08-13 23:54:07 +02:00
Bruce Weirdan
77422c4631
Forbid faulty nikic/php-parser version
`4.17.0` had a bug that made our CI checks to fail. `4.17.1` fixed that
issue (https://github.com/nikic/PHP-Parser/issues/939).
2023-08-13 23:42:52 +02:00
Bruce Weirdan
9bc98ecd47
Merge pull request #10110 from weirdan/fix-hash_pbkdf2-options-parameter 2023-08-13 21:36:43 +02:00
Bruce Weirdan
9d7d887080
Fix hash_pbkdf2 $options parameter
`$options` parameter actually appeared in 8.1 (in [1]) but wasn't documented until 8.1.22

* [1] 110b4e9094
2023-08-13 21:19:58 +02:00
Bruce Weirdan
2911a67099
Show PHP version 2023-08-13 21:05:21 +02:00
Bruce Weirdan
76a62db2ea
Merge branch '5.x' into upstream-master 2023-08-13 19:46:13 +02:00
orklah
a6e2e31aae
Merge pull request #10093 from kkmuffme/inconsistent-argv-argc-in-context
argv and argc were inconsistent in Context with VariableFetchAnalyzer
2023-08-13 19:32:19 +02:00
Bruce Weirdan
a645331026
Merge pull request #10109 from weirdan/fix-10090 2023-08-13 06:03:45 +02:00
Bruce Weirdan
4ca9dccb1d
Merge branch '5.x' into fix-10090 2023-08-13 06:03:16 +02:00
Bruce Weirdan
84bbf2bd90
Merge pull request #10108 from weirdan/lsp-cleanup-test-command 2023-08-13 06:01:46 +02:00
Bruce Weirdan
03f7c263fe
Correct type for $enum->name 2023-08-13 05:56:33 +02:00
Bruce Weirdan
dbd94ef85d
Cleanup test command and fixAll action
None were working.
2023-08-13 05:53:46 +02:00
Bruce Weirdan
626444dd2e
Merge pull request #10106 from TheDevick/fix-bcdiv-stub 2023-08-13 02:07:19 +02:00
Bruce Weirdan
b70d40703f
Merge pull request #10107 from kamil-tekiela/true-mysqli_field_seek- 2023-08-13 02:01:41 +02:00
Kamil Tekiela
0b434514d2 Some mysqli methods return true always 2023-08-12 19:29:31 +01:00
Kamil Tekiela
c757054144 mysqli_field_seek returns true 2023-08-12 19:29:10 +01:00
The Devick
313267082b
Fix bcdiv nullable scale stub 2023-08-12 14:36:00 -03:00
Bruce Weirdan
a69eddda24
Merge pull request #10104 from 6b7562617765726c6f73/fix_MethodCallAnalyzer 2023-08-12 18:35:38 +02:00
Kuba Werłos
35183b9542 Add fix 2023-08-12 12:50:24 +02:00
Kuba Werłos
18a4752970 Add test 2023-08-12 12:28:23 +02:00
Mark McEver
1d1c13a836 Removed trailing whitespace to follow code style 2023-08-08 15:34:23 -05:00
kkmuffme
801cca2aa3 argv and argc were inconsistent in Context with VariableFetchAnalyzer
Not sure why argv/argc are declared in context independently in the first place though
2023-08-08 22:29:18 +02:00