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

10684 Commits

Author SHA1 Message Date
hirokinoue
37c53ee783 handle the non-empty case for sort() 2022-04-23 22:51:50 +09:00
orklah
2724c1dba9
Merge pull request #7872 from hirokinoue/float-template-arithmetics-4.x
don't emit issues when doing arithmetics on float templates
2022-04-19 19:35:57 +02:00
orklah
55a45a935c
Merge pull request #7876 from vognev/feature/vendor-cache
cache statements even without persistent parser cache
2022-04-18 20:29:52 +02:00
Vitaliy Ognev
6afdb0d9b6 better type safety and inference 2022-04-18 21:00:20 +03:00
Vitaliy Ognev
1dc2b3b026 cache statements even without persistent parser cache 2022-04-18 10:26:56 +03:00
hirokinoue
a525342bc7 add test case 2022-04-16 14:05:51 +09:00
hirokinoue
b132c3b751 fix error message 2022-04-16 14:05:40 +09:00
hirokinoue
a99532da5e code format 2022-04-16 14:05:31 +09:00
hirokinoue
23c3d87dcc don't emit issues when doing arithmetics on float templates 2022-04-16 14:05:20 +09:00
orklah
338faa9acc
Merge pull request #7861 from white43/drone-ci-output
Disable filepath formatting as a link for Drone CI's output
2022-04-13 21:11:44 +02:00
orklah
bbfcf026d9
Merge pull request #7866 from mpesari/4.x
Fix openssl_csr_export() signature
2022-04-13 21:07:17 +02:00
Mikko Pesari
161a8ae6c4 Fix openssl_csr_export() signature 2022-04-13 17:47:59 +03:00
orklah
f04945c2dc
Merge pull request #7864 from hirokinoue/precise-get-trace
Further improve Throwable::getTrace() return type
2022-04-12 18:46:17 +02:00
hirokinoue
c6d7bc0d19 Improve Throwable::getTrace() return type 2022-04-12 23:42:37 +09:00
Anton Belyaev
e7c2c77ec2 Disable filepath formatting as a link for Drone CI's output 2022-04-11 23:19:55 +03:00
orklah
6d0cc07255
Merge pull request #7838 from VincentLanglet/sortTypes
Fix Incompatible types found for T (Stub&ProxyQueryInterface is not in ProxyQueryInterface&Stub)
2022-04-10 10:20:30 +02:00
Vincent Langlet
48bc030eec Add test 2022-04-09 21:59:23 +02:00
orklah
eeb12bc285
Merge pull request #7851 from jrmajor/docs/ignore-var
Document `@psalm-ignore-variable-*`
2022-04-09 17:29:50 +02:00
Jeremiasz Major
ce25b39b5d
Document @psalm-ignore-variable-* 2022-04-08 00:30:23 +02:00
orklah
ab1ae8ff3d
Merge pull request #7849 from jrmajor/docs
Document `@psalm-yield`
2022-04-07 23:26:17 +02:00
Jeremiasz Major
23ad8d6684
Fix typos 2022-04-07 21:50:19 +02:00
Jeremiasz Major
e1fe1161bd
Remove documented annotations from wall of shame 2022-04-07 21:44:33 +02:00
Jeremiasz Major
f4f1a26cf9
Document @psalm-yield 2022-04-07 21:43:12 +02:00
orklah
ab26e6b2f3
Merge pull request #7837 from ThomasLandauer/pr-7835
Avoiding double spaces (v2)
2022-04-03 20:29:48 +02:00
Thomas Landauer
587039fd1d Fixing CS 2022-04-03 11:41:39 +02:00
Vincent Langlet
590ac22ea2 Use another strategy 2022-04-03 09:16:00 +02:00
Vincent Langlet
3729c0d3ed Sort types when intersection is used 2022-04-02 22:08:44 +02:00
Thomas Landauer
e87c25c825 Second attempt of #7835 2022-04-02 14:57:56 +02:00
orklah
c209c66263
Merge pull request #7828 from mstilkerich/impure_readline
Psalm considers most readline functions as pure, but they have side effects
2022-04-01 16:26:21 +02:00
Michael Stilkerich
a696e559b7 Treat readline functions as impure 2022-04-01 16:13:55 +02:00
orklah
1fc5c1cef8
Merge pull request #7829 from AndrolGenhald/bugfix/int-range-namespaced-keywords
Fix namespaced min/max int range keyword issue introduced in #7775
2022-03-31 19:21:45 +02:00
AndrolGenhald
0bdf9425e3 Fix namespaced min/max int range keyword issue introduced in #7775. 2022-03-30 16:08:14 -05:00
orklah
05a3806ca7
Merge pull request #7824 from mrardon/fix-ftp-args
Fix ftp_fget/_fput/_nb_fget/_nb_fput stream arg type
2022-03-29 19:24:20 +02:00
Matthew Rardon
9c91912281 Fix ftp_fget/_fput/_nb_fget/_nb_fput arg types 2022-03-28 11:38:18 -04:00
orklah
c74981127f
Merge pull request #7801 from gndk/fix-appveyor-disable
Fix disabling of appveyor auto build
2022-03-18 21:16:01 +01:00
orklah
b4ae3a9faf
Merge pull request #7798 from ciaranmcnulty/get-trace-stubs
Add return shape for Throwable::getTrace
2022-03-18 19:59:26 +01:00
gndk
70166bd743 Fix disabling of appveyor auto build 2022-03-18 12:31:35 +01:00
Ciaran McNulty
ca185d7f28 Update Throwable::getTrace in stubs 2022-03-18 09:14:37 +00:00
Ciaran McNulty
0b39384325 Add return shape for Throwable::getTrace
This is based on the documentation for debug-backtrace:
   https://php.net/debug_backtrace

Experimentation that shows the `object` field is not populated for exceptions:
   https://3v4l.org/iQoni

And validation on psalm.dev:
   https://psalm.dev/r/b35a8df2f3
2022-03-18 09:14:23 +00:00
orklah
80f972cc38
Merge pull request #7791 from ohader/issue-7771-4x
Avoid json_encode when serializing non-UTF8 literals
2022-03-16 19:00:49 +01:00
Oliver Hader
9e4e468907
Adjust test case format
Related: #7771
2022-03-16 10:35:36 +01:00
orklah
ebffd5258a
Merge pull request #7433 from zoonru/maximum_shaped_array_size
Add configuration for maximum size of shaped array
2022-03-15 21:19:05 +01:00
e7ec124ebb
Add documentation for maxStringLength and maxShapedArraySize configs 2022-03-15 11:05:57 +01:00
Oliver Hader
2b3753676b
Avoid json_encode when serializing non-UTF8 literals
`\Psalm\Internal\Clause::$hash` basically holds a hash on
arbitrary input literals, used for later comparison. Using
`json_encode` fails when dealing with non-UTF8 literals,
which has been replaced by plain PHP `serialize`.

Resolves: #7771
2022-03-15 10:39:58 +01:00
Oliver Hader
b00d9e9514
Add test case reproducing issue #7771
Related: #7771
2022-03-15 10:34:46 +01:00
d4170feb0f
Add documentation for maxStringLength and maxShapedArraySize configs 2022-03-15 10:14:36 +01:00
orklah
32f10c392d
Merge pull request #7788 from AndrolGenhald/attribute-analysis-improvements
More attribute fixes.
2022-03-14 21:11:19 +01:00
AndrolGenhald
11f51f4c54 Use key-of instead of literal int union. 2022-03-14 15:05:33 -05:00
orklah
05d253b704
Merge pull request #7785 from hc-jworman/#7784_PDOStatement_fetchAll()_has_incorrect_type
PDOStatement::fetchAll() has incorrect type
2022-03-14 20:21:59 +01:00
AndrolGenhald
08d4d797ef More attribute fixes. 2022-03-14 14:15:07 -05:00