1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
Commit Graph

5807 Commits

Author SHA1 Message Date
cgocast
84e7423175 Detect DoS by sleep vimeo#10178 2023-09-06 15:58:08 +02:00
Bruce Weirdan
56310333dc
Merge branch '5.x' into upstream-master 2023-09-03 00:07:19 +02:00
Bruce Weirdan
cd8fc46554
Flag invalid declares 2023-09-02 23:41:50 +02:00
Bruce Weirdan
96d8394761
Merge branch '5.x' into upstream-master 2023-08-31 23:35:01 +02:00
robchett
d0c4d170b0
Apply psalm-inheritors to interfaces too 2023-08-31 23:12:10 +02:00
robchett
e23971ca29
InheritorViolation was only being triggered on grand-childen classes
Fixes #10167
2023-08-31 23:12:07 +02:00
Bruce Weirdan
480c876cc8
Merge branch 'master' into backed-enum-value-changed-to-atomic 2023-08-31 20:28:16 +02:00
Arthur Kurbidaev
5ba7c262a5 Changed name of the test 2023-08-31 19:05:48 +02:00
tuqqu
0a74e027d9 Backed enum value changed to Atomic instead of scalar int or strings 2023-08-31 19:04:59 +02:00
Bruce Weirdan
983e4b82dd
Merge branch 'master' into 5.x 2023-08-31 16:32:27 +02:00
cgocast
5545873f44 Fix tests 2023-08-31 05:44:57 +02:00
cgocast
c16216bc42 Xpath injection #10162 2023-08-30 18:56:10 +02:00
Bruce Weirdan
b0521f3307
Merge branch '5.x' into upstream-master 2023-08-28 12:05:34 +02:00
Bruce Weirdan
3814fbb231
Merge pull request #10157 from boesing/bugfix/assertions-from-inherited-docblock 2023-08-28 12:04:47 +02:00
Bruce Weirdan
54b0d02247
Merge branch '5.x' into upstream-master 2023-08-28 02:12:46 +02:00
Bruce Weirdan
b3150d451a
Fix crash on property access to undefined property on a class with a missing dependncy 2023-08-28 01:58:02 +02:00
Maximilian Bösing
5e520e6bff
bugfix: properly inherit assertions from parents or implemented interfaces
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-28 01:12:28 +02:00
Bruce Weirdan
d3463e30f3
Merge branch '5.x' into upstream-master 2023-08-27 05:28:10 +02:00
cgocast
c8b47b17bf Fix typo 2023-08-26 21:54:26 +02:00
cgocast
72c9bf8575 New sinks for TaintedCallable #10117 2023-08-26 19:29:00 +02:00
Bruce Weirdan
190d488196
Merge branch '5.x' into upstream-master 2023-08-26 01:57:03 +02:00
Maximilian Bösing
5948559a31
feature: introducing proper handling of value-of in combination with backed enums
This introduces both:
- a bugfix for a regression introduced by `31eaf83c4` which prevents backed enums are incorrectly identified as literals
- an additional feature so that `value-of` can be used with backed enums to assert any of the enum cases values

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-25 23:58:53 +02:00
Maximilian Bösing
22bcd576d3
qa: add test to verify backed enums are no literals
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-25 23:53:58 +02:00
Bruce Weirdan
828f6618ca
Merge branch '5.x' into upstream-master 2023-08-20 23:56:55 +02:00
Bruce Weirdan
1474340cf2
Fix crash on array access to undefined class 2023-08-20 23:45:30 +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
Bruce Weirdan
76a62db2ea
Merge branch '5.x' into upstream-master 2023-08-13 19:46:13 +02:00
Bruce Weirdan
03f7c263fe
Correct type for $enum->name 2023-08-13 05:56:33 +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
Mark McEver
7ffba7f611 Respect stubs in all cases 2023-08-08 15:07:15 -05:00
Yannick Gottschalk
a4de6d9dc0 Fix #9997
- make SimpleXmlElement and SimpleXmlIterator not a universal object crate
- added typed magic __get method to SimpleXmlElement
- adjusted tests to reflect new behaviour of SimpleXmlElement
- added tests
2023-08-05 17:07:08 +02:00
kkmuffme
02385c2b49 code style + update tests 2023-08-04 23:56:47 +02:00
kkmuffme
0a58a68e9a make (s)printf error reporting more correct/literal
Fix https://github.com/vimeo/psalm/issues/10021
Fix https://github.com/vimeo/psalm/issues/9987 again now for all cases (specifically https://github.com/vimeo/psalm/issues/9987#issuecomment-1624360506)

Use RedundantFunctionCall instead of InvalidArgument, where it's technically valid.
Report TooManyArguments when a format without placeholders is used
Report an error for splat with vprintf/vsprintf
2023-08-04 23:38:48 +02:00
orklah
b9d355e082
Merge pull request #10071 from weirdan/fix-10070
Allow method-like strings in `referencedFunction`
2023-08-01 07:16:55 +02:00
Bruce Weirdan
ec842c0f3d
Allow method-like strings in referencedFunction
Fixes vimeo/psalm#10070
2023-08-01 06:37:01 +02:00
klimick
809b27c499 Fix variadic callable type check 2023-07-30 11:43:07 +03:00
3e747a692e
Merge branch 'non_falsy_string_literal' into psalm_v6 2023-07-29 15:05:18 +02:00
99dd34c67e
Merge remote-tracking branch 'hub/master' into psalm_v6 2023-07-29 15:04:52 +02:00
63347e71ae
Merge remote-tracking branch 'hub/5.x' into non_falsy_string_literal 2023-07-29 15:04:04 +02:00
767fa621cf
Merge remote-tracking branch 'hub/master' into amp_v3 2023-07-28 11:23:51 +02:00
orklah
73ebe227b2
Merge pull request #10055 from thbley/master
Add type detection for PDOStatement::fetchAll(PDO::FETCH_CLASS, SomeClass::class)
2023-07-27 19:03:09 +02:00
Thomas Bley
ee505259aa #9974 extended test with PDO::ATTR_DEFAULT_FETCH_MODE for future implementation 2023-07-27 15:59:31 +02:00
Thomas Bley
d600705b0c #9974 removed references_in_scope for setFetchMode 2023-07-27 15:53:05 +02:00
Thomas Bley
66bc28d2a8 #9974 extended return type detection for PDOStatement::fetchAll/fetch with FETCH_COLUMN and FETCH_KEY_PAIR 2023-07-27 01:39:21 +02:00
Bruce Weirdan
6c0a09a36a
Merge pull request #10050 from weirdan/lsp-modernize-progress-reporting
Modernize LSP progress reporting
2023-07-27 01:11:36 +02:00
Thomas Bley
fc74ae83e6 #9974 added return type detection for PDOStatement::fetchAll, extended return type detection for PDOStatement::fetch 2023-07-27 00:40:26 +02:00
orklah
be875f50e4
Merge pull request #10028 from thbley/master
added GitHub CI for unit tests with PHP 8.2 and 8.3
2023-07-26 19:23:15 +02:00
b839d8dfe0
Merge remote-tracking branch 'hub/master' into amp_v3 2023-07-26 10:19:11 +02:00
Bruce Weirdan
4f6fc3585b
Update tests to account for new progress protocol 2023-07-26 05:16:37 +02:00