1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 09:19:40 +01:00
Commit Graph

13905 Commits

Author SHA1 Message Date
cgocast
84e7423175 Detect DoS by sleep vimeo#10178 2023-09-06 15:58:08 +02:00
Bruce Weirdan
37cc4fd33f
Merge branch '5.x' into upstream-master 2023-09-03 23:08:17 +02:00
Bruce Weirdan
8362cc6900
Merge pull request #10161 from weirdan/composer.json-tweaks 2023-09-03 23:06:57 +02:00
Bruce Weirdan
56310333dc
Merge branch '5.x' into upstream-master 2023-09-03 00:07:19 +02:00
Bruce Weirdan
d7ba2cc5ee
Merge pull request #10176 from weirdan/flag-invalid-declares 2023-09-03 00:06:39 +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
Bruce Weirdan
c0599975c6
Merge pull request #10169 from robchett/fix_InheritorViolation 2023-08-31 23:34:29 +02:00
Bruce Weirdan
c50e822ff3
Merge pull request #10165 from tuqqu/backed-enum-value-changed-to-atomic 2023-08-31 23:13:53 +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
tuqqu
76f03cc71a Enum case value null check instead of instanceof 2023-08-31 20:44:29 +02:00
Bruce Weirdan
f251c9c020
Document BC break 2023-08-31 20:38:18 +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
77650e7b15
Merge pull request #10163 from cgocast/5.x 2023-08-31 16:41:56 +02:00
Bruce Weirdan
983e4b82dd
Merge branch 'master' into 5.x 2023-08-31 16:32:27 +02:00
Bruce Weirdan
e5b912bb2b
Document BC break 2023-08-31 16:30:37 +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
ca967bc162
Added support links 2023-08-30 07:45:16 +02:00
Bruce Weirdan
791e5d65b5
composer.json tweaks
Psalm is not a library.

Also updated `composer lint` description.
2023-08-30 07:37:29 +02:00
Bruce Weirdan
722bec7c95
Merge branch '5.x' into upstream-master 2023-08-28 12:07:06 +02:00
Bruce Weirdan
cc7ed9586e
Merge pull request #10156 from boesing/bugfix/prevent-infinite-loop-in-type-parser 2023-08-28 12:06:45 +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
Maximilian Bösing
66c01813c1
refactor: move assertion detection based on inherited classes/interfaces into internal resolver
This also enables `ExistingAtomicStaticCallAnalyzer` to detect those inherited assertions.

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-28 11:09:23 +02:00
Bruce Weirdan
54b0d02247
Merge branch '5.x' into upstream-master 2023-08-28 02:12:46 +02:00
Bruce Weirdan
b29ea52dd9
Merge pull request #10159 from vimeo/fix-crash-on-property-access-with-missing-dependency 2023-08-28 02:10:39 +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
2a0ce2fecc
qa: add newlines to prevent exceeding 120 character line-length limit
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-28 01:15:49 +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
Maximilian Bösing
3fa5710400
qa: preserve already detected modifications
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-27 22:38:43 +02:00
Maximilian Bösing
d9ebab6b75
bugfix: prevent infinite-loop when resolving type-aliases
The type-expander returns the same `intersection_type` in case something is not properly expandable. To avoid infinite-loop, we do explicitly verify that the expanded  alias is actually resolved

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-27 17:08:55 +02:00
Bruce Weirdan
d3463e30f3
Merge branch '5.x' into upstream-master 2023-08-27 05:28:10 +02:00
Bruce Weirdan
77436b1339
Merge pull request #10154 from cgocast/5.x 2023-08-27 05:27:41 +02:00
Bruce Weirdan
55fb26951a
Merge pull request #10155 from weirdan/update-mysqli-stub 2023-08-27 04:37:25 +02:00
Bruce Weirdan
23ad49cbe4
Update mysqli stub
Refs vimeo/psalm#9851
2023-08-27 04:17:23 +02:00
cgocast
bb902990f8 Sink for ReflectionFunction::__construct() 2023-08-26 22:09:27 +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
Bruce Weirdan
8bfcf473b9
Merge pull request #10151 from weirdan/strrchr-before_needle 2023-08-26 01:44:57 +02:00
Bruce Weirdan
9b6edffc44
Merge pull request #10150 from boesing/bugfix/enum-values 2023-08-26 01:43:07 +02:00
Bruce Weirdan
5332853f4f
Merge pull request #10149 from lens0021/master-1 2023-08-26 01:42:01 +02:00
Bruce Weirdan
b6ed045746
strrchr(): $before_needle parameter
Refs: php/php-src#11430
2023-08-26 01:36:05 +02:00
Bruce Weirdan
ad0a132d7f
Update src/Psalm/Type.php 2023-08-25 19:30:16 -04:00
Maximilian Bösing
e985e8aadb
qa: add proper parameter type-hint to suit psalm analysis
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-26 00:49:02 +02:00
Lens0021 / Leslie
5aac98b173
A semicolon expected 2023-08-26 07:44:24 +09:00