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

13557 Commits

Author SHA1 Message Date
kkmuffme
e3f589d79e improve printf,... callmap 2023-06-09 12:59:13 +02:00
kkmuffme
cf4536f646 fix incorrect return type of printf 2023-06-09 12:59:12 +02:00
kkmuffme
0a54c84055 readonly does not have write access, therefore is safe as long as the type is contained in the parent type
Fix https://github.com/vimeo/psalm/issues/9831#issuecomment-1569022701
2023-06-09 12:37:41 +02:00
orklah
99a54fb7bb
Merge pull request #9875 from robchett/getimagesize_return_type
Improve the return types for getimagesize and getimagesizefromstring
2023-06-07 20:34:25 +02:00
orklah
08d5b719c7
Merge pull request #9878 from ygottschalk/fix/9820-glob-stub
Glob return type stub
2023-06-07 20:32:40 +02:00
orklah
64b930ebc4
Merge pull request #9868 from stof/patch-1
Update the signature of debug_backtrace
2023-06-07 20:30:06 +02:00
orklah
61e7a11344
Merge pull request #9883 from klimick/better-intersection-of-template-types-during-inheritance-check
Better intersection of template types during inheritance check
2023-06-07 20:29:07 +02:00
andrew
4f5dfa7350 Better intersection of template types during inheritance check 2023-06-07 17:58:25 +03:00
Yannick Gottschalk
8bab567aac Merge branch 'master' into fix/9820-glob-stub 2023-06-07 11:45:16 +02:00
orklah
4ebe4c196f
Merge pull request #9880 from kkmuffme/fix-failing-mock-tests
fix failing mock tests
2023-06-07 11:11:42 +02:00
kkmuffme
bc121b3f25 more unrelated phpcs code style 2023-06-07 09:09:01 +02:00
kkmuffme
7dcd8e13dd fix phpcs code style issues in unrelated code which is reported now that phpcs is fixed 2023-06-07 09:01:47 +02:00
Yannick Gottschalk
c74d431fdf Fixed style issues 2023-06-07 08:52:54 +02:00
kkmuffme
2a6ff76cb3 set phpcs memory limit in circle ci (suggested number, no idea if that's enough) 2023-06-07 08:45:42 +02:00
kkmuffme
08d515d7af don't autoload AllowDynamicProperties 2023-06-07 08:41:44 +02:00
kkmuffme
ed9fbab1c4 don't autoload Mockery/Closure 2023-06-07 08:31:53 +02:00
kkmuffme
40679e9a82 fix failing mock tests 2023-06-07 08:12:31 +02:00
Yannick Gottschalk
a130e2f06c Fixes #9820 2023-06-06 17:02:28 +02:00
Christophe Coevoet
fabb8cf10c Update the signature of debug_backtrace
the file and line keys might be missing for frames. This happens when the frame are calls originating from native code.
2023-06-06 10:20:48 +02:00
RobChett
953d7ba7d1 Improve the return types for getimagesize and getimagesizefromstring 2023-06-05 20:05:56 +01:00
orklah
e15e03d6cf
Merge pull request #9867 from janopae/patch-1
Document classAndDescendants configuration tag
2023-06-04 23:06:08 +02:00
orklah
9d1c2c4596
Merge pull request #9866 from klimick/fix-generic-type-params-mapping
Fix generic type params mapping
2023-06-04 23:05:04 +02:00
orklah
43df1dc9ba
Merge pull request #9865 from klimick/intersection-with-template
Intersect template types during inheritance check
2023-06-04 23:01:28 +02:00
orklah
c15860508b
Merge pull request #9853 from kkmuffme/multiple-psalm-assert-if-for-array-list
Allow if/false assert for same variable to allow array/list distinction
2023-06-04 22:59:37 +02:00
Jano Paetzold
bdca3144a0
Document classAndDescendants configuration tag
As stated in #3286, this is still undocumented.
2023-06-02 17:00:13 +02:00
andrew
02addbe79c Fix generic type params mapping 2023-06-02 17:36:13 +03:00
andrew
38bd4d8c0d Intersect template 2023-06-02 14:48:20 +03:00
kkmuffme
fa644cbb34 code review init variables 2023-06-02 08:54:00 +02:00
orklah
a82e7fc893
Merge pull request #9856 from lptn/shepherd-add-package-versions-to-payload
Extend Shepherd payload by information about package versions
2023-06-01 19:37:56 +02:00
Alies Lapatsin
d3a6da7418 Fix coding style issue 2023-06-01 16:38:29 +02:00
Alies Lapatsin
f114858be9 Update array shape 2023-06-01 14:37:05 +02:00
Alies Lapatsin
83063272e5 Add package versions to Shepherd payload 2023-06-01 14:32:25 +02:00
orklah
e55530d627
Merge pull request #9845 from lptn/shepherd-use-list-of-issues
Shepherd: send a list of issues (instead of array with int keys)
2023-06-01 13:36:05 +02:00
Alies Lapatsin
7b7d823b07 Use better var name 2023-06-01 10:51:10 +02:00
orklah
75baaf7889
Merge pull request #9844 from kkmuffme/property-no-set-in-constructor-abstract-false-positive
PropertyNotSetInConstructor should not report for abstract constructors
2023-06-01 07:21:23 +02:00
kkmuffme
103e7b343c PropertyNotSetInConstructor should not report for abstract constructors
since they do not have any code

Fix https://github.com/vimeo/psalm/issues/9830
2023-06-01 01:38:33 +02:00
kkmuffme
322878b1d7 code style 2023-06-01 01:33:12 +02:00
kkmuffme
c17564d27c code style and false positive shepherd 2023-06-01 01:25:46 +02:00
kkmuffme
1f2db5f31c Allow if/false assert for same variable to allow array/list distinction
Fix https://github.com/vimeo/psalm/issues/9037
2023-06-01 01:08:06 +02:00
orklah
a762b6c3bb
Merge pull request #9841 from kkmuffme/sprintf-basic-return-type-provider
sprintf basic non-empty-string return type provider
2023-05-31 23:36:03 +02:00
Alies Lapatsin
5e7e067798 Merge branch 'master' into shepherd-use-list-of-issues
# Conflicts:
#	src/Psalm/Plugin/Shepherd.php
2023-05-31 23:11:56 +02:00
orklah
5b2efad55b
Merge pull request #9846 from lptn/use-consts-for-issue-severity
Introduce and use `IssueData` constants for severity levels
2023-05-31 23:04:13 +02:00
orklah
6b94453bea
Merge pull request #9848 from lptn/phpstorm-output-format-on-jetbrains-terminal
Use PHPStorm output format by default on JetBrains terminals
2023-05-31 20:29:58 +02:00
Alies Lapatsin
bf1a7365d2 Use PHPStorm output format by default on JetBrains terminals 2023-05-31 13:30:52 +02:00
Alies Lapatsin
3700ab6c61 Fix RedundantConditionGivenDocblockType issues 2023-05-31 13:11:54 +02:00
Alies Lapatsin
67648ac248 Use new IssueBuffer constants 2023-05-31 13:00:16 +02:00
Alies Lapatsin
174cd5c0fe Introduce and use IssueData constants for severity
they are not the same as Config::REPORT_* constants
2023-05-31 12:38:15 +02:00
Alies Lapatsin
2fa943a8a6 Shepherd: send a list of issues (instead of array with int keys)
as result Shepherd will send an array is issues instead of object with "random" numeric keys
2023-05-31 12:24:49 +02:00
kkmuffme
8606d5585f sprintf basic non-empty-string return type provider
Fix https://github.com/vimeo/psalm/issues/9819
This PR is a starting point for improving the sprintf return type and eventually validate the format, param types and param count.
(see https://github.com/vimeo/psalm/issues/9817, https://github.com/vimeo/psalm/issues/9818)
2023-05-30 22:11:17 +02:00
orklah
bebce06014
Merge pull request #9842 from kkmuffme/uniqid-wrong-return-type
uniqid return type non-empty-string inconsistent
2023-05-30 21:45:16 +02:00