Mathieu Rochette
e2aafdeab2
Improve array_unique callmap stubs
...
see #7956
2022-05-23 21:19:00 +02:00
orklah
b46fb1460d
Merge pull request #7992 from AndrolGenhald/bugfix/7973
...
Fix class const issue when using floats declared in future consts (fixes #7973 ).
2022-05-21 14:02:05 +02:00
AndrolGenhald
80e94daefb
Fix class const issue when using floats declared in future consts ( fixes #7973 ).
...
- Calculate literal type for float arithmetic instead of only for int arithmetic
- Fix copy/paste fail causing InvalidConstantAssignmentValue to be marked as fixable
2022-05-20 14:46:05 -05:00
orklah
50fb396bbb
Merge pull request #7988 from GromNaN/completion
...
Fix conflict of option -c with shell completion
2022-05-20 20:43:44 +02:00
Jerome TAMARELLE
afed93b6bd
Fix conflict of option -c with shell completion
2022-05-20 09:42:57 +02:00
Matt Brown
990887148c
Fix #7968 - combine and simplify types where necessary in ternary analysis
2022-05-19 22:32:14 -04:00
orklah
5c1d95b335
Merge pull request #7982 from KevinVanSonsbeek/bugfix/#7912-class-APCuIterator-does-not-exist
...
Bugfix/#7912 class APCuIterator does not exist
2022-05-18 19:36:55 +02:00
Kevin van Sonsbeek
23eff58a09
bugfix/#7912: Add Iterator implements to stub
2022-05-17 23:55:44 +02:00
Kevin van Sonsbeek
22080a1b15
bugfix/#7912: Added extension_loaded check for apcu and load internal stub on true
2022-05-17 23:45:42 +02:00
Kevin van Sonsbeek
f86b599878
bugfix/#7912: Added stub for the APCu extension
2022-05-17 23:45:08 +02:00
orklah
894e4e4c02
Merge pull request #7967 from hirokinoue/fix_return_type
...
Improve @return annotation for implode() so that it can handle non-empty-array of non-empty-strings case
2022-05-17 20:54:58 +02:00
hirokinoue
4fc34d998b
improve @return annotation of join()
2022-05-14 23:47:46 +09:00
hirokinoue
91640e7e90
improve @return annotation of implode()
2022-05-14 23:44:43 +09:00
hirokinoue
e7005245b8
add test case for implode()
2022-05-14 23:36:51 +09:00
orklah
3929d731ad
Merge pull request #7935 from theodorejb/improve-object-casts
...
Infer object shape when array or scalar is cast to object
2022-05-14 10:25:13 +02:00
orklah
b37da4ae1f
Merge pull request #7951 from staabm/patch-4
...
fix missing is_a() parameter type
2022-05-12 22:58:24 +02:00
Markus Staab
3c837e5d9a
fix missing is_a() parameter type
2022-05-12 15:37:29 +02:00
Theodore Brown
4eef964048
Infer object shape when array or scalar is cast to object
...
Also detect redundant object casts.
Fixes #7916 , fixes #7934
2022-05-09 20:31:29 -05:00
Theodore Brown
6f3ceea7d0
Remove several unused use statements
2022-05-08 23:18:18 -05:00
orklah
90d2b3cf5e
Merge pull request #7914 from mathroc/patch-2
...
fix small error in plugins_type_system.md
2022-05-08 22:43:51 +02:00
Mathieu Rochette
9b2cf438a5
fix small error in plugins_type_system.md
...
int-mask → int-mask-of
2022-05-02 11:08:51 +02:00
orklah
f1fe6ff483
Merge pull request #7908 from hirokinoue/fix-sort-assert-annotation
...
Fix sort assert annotation
2022-04-28 19:35:49 +02:00
hirokinoue
4bb5c38eb6
add test case for usort()
2022-04-29 00:52:37 +09:00
hirokinoue
2b34b1228b
handle the non-empty case for usort()
2022-04-29 00:36:28 +09:00
hirokinoue
139948e774
add test case for uksort()
2022-04-29 00:33:08 +09:00
hirokinoue
8c64bddf29
handle the non-empty case for uksort()
2022-04-29 00:23:57 +09:00
hirokinoue
d4470cc99e
add test case for uasort()
2022-04-29 00:18:27 +09:00
hirokinoue
37bf36d475
handle the non-empty case for uasort()
2022-04-28 23:49:32 +09:00
hirokinoue
c7b9e1eebb
add test case for shuffle()
2022-04-28 23:18:39 +09:00
hirokinoue
95b5e8cb56
handle the non-empty case for shuffle()
2022-04-28 23:07:43 +09:00
hirokinoue
db565f1d32
add test case for rsort()
2022-04-28 23:05:33 +09:00
hirokinoue
1605b18678
handle the non-empty case for rsort()
2022-04-28 23:01:17 +09:00
hirokinoue
0770f0128c
improve syntax
2022-04-28 22:44:39 +09:00
Matt Brown
f960d71b7e
Empty commit
2022-04-27 12:25:14 -04:00
Matt Brown
9c153de6da
Fix LSP api discrepancies
2022-04-27 11:56:54 -04:00
Matt Brown
fe0470a605
Remove latest PHPUnit from 4.x projects
2022-04-27 11:50:11 -04:00
Matt Brown
c260626ccd
Fix style issues
2022-04-27 10:35:22 -04:00
Matt Brown
1e15ed393a
Fix merge conflict with attribute tests
2022-04-27 10:31:58 -04:00
Matt Brown
fccc366c1e
Merge pull request #7887 from ging-dev/lsp-fixes
...
improve LSP
2022-04-27 10:13:17 -04:00
Matt Brown
84598077f8
better type safety and inference
2022-04-27 01:51:23 -04:00
Matt Brown
5b91506926
cache statements even without persistent parser cache
2022-04-27 01:50:13 -04:00
Matt Brown
d064d9fc6c
Add test
2022-04-27 01:47:02 -04:00
Matt Brown
2ef993928c
Document @psalm-ignore-variable-*
2022-04-27 01:46:13 -04:00
Matt Brown
a9e3c1fdc1
Fix namespaced min/max int range keyword issue introduced in #7775 .
2022-04-27 01:44:57 -04:00
Matt Brown
402280d4f9
Merge pull request #7791 from ohader/issue-7771-4x
...
Avoid json_encode when serializing non-UTF8 literals
2022-04-27 01:44:06 -04:00
Matt Brown
20351c6667
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-04-27 01:42:37 -04:00
Matt Brown
043bbfbbb4
Remove useless array casting as CallMap for stream_select is reset.
2022-04-27 01:40:51 -04:00
Matt Brown
890375d908
Cast the read streams to an array while looping over as it can be NULL.
2022-04-27 01:39:30 -04:00
Matt Brown
d0524c2418
Forbid min bound greater than max bound in int range
2022-04-27 01:38:21 -04:00
Matt Brown
4bc5da88dd
Improve scoping a bit more
2022-04-27 01:37:26 -04:00