1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 02:07:37 +01:00
Commit Graph

11308 Commits

Author SHA1 Message Date
Bruce Weirdan
fce4272226
PHP 7.4 fixes 2022-05-28 16:40:49 -04:00
Bruce Weirdan
5d21ff98b6
Suppress false posisitives 2022-05-28 16:34:53 -04:00
Bruce Weirdan
242ee344ec
CS fix 2022-05-28 16:26:08 -04:00
Bruce Weirdan
de49946e4d
Update empty list/array notation 2022-05-28 16:19:49 -04:00
Bruce Weirdan
ff50516fbd
Post-merge fixes 2022-05-28 15:05:17 -04:00
Bruce Weirdan
e0acf22e40
Merge branch '4.x' into update-master 2022-05-28 14:49:12 -04:00
orklah
ec9a9994f5
Merge pull request #8022 from AndrolGenhald/bugfix/8018-improve-failure-case-for-references
Improve handling of unsupported references (fixes #8018).
2022-05-27 19:09:05 +02:00
orklah
430e1eeb12
Merge pull request #8023 from MidnightDesign/patch-1
Fix a typo in MissingConstructor.md
2022-05-27 16:48:26 +02:00
Rudolph Gottesheim
6f00a72446
Fix a typo in MissingConstructor.md 2022-05-27 11:04:00 +02:00
AndrolGenhald
6df50159a7 Fix trailing comma in parameter list for PHP 7.4. 2022-05-26 18:41:00 -05:00
AndrolGenhald
31b4dceaf4 Improve handling of unsupported references (fixes #8018). 2022-05-26 18:28:23 -05:00
orklah
06d8e3e399
Merge pull request #8011 from kkmuffme/performance-only-load-files-once
Performance only load files once
2022-05-26 18:03:08 +02:00
orklah
d94f56a88a
Merge pull request #8007 from kkmuffme/add-missing-igbinary-serialize-code
igbinary_serialize code was missing in file
2022-05-26 17:57:02 +02:00
Bruce Weirdan
48db4f24c4
Merge pull request #8009 from kkmuffme/microoptimize-phpversion-check-as-requested 2022-05-26 18:12:27 +03:00
kkmuffme
278e8777d9 dont strolower filename, since file names on linux are case sensitive 2022-05-25 14:12:15 +02:00
kkmuffme
06178d0a6b only load files once
* use static to keep opened files with content
* move position of file cache population to the place where we read files to ensure cache always gets populated and not on open only (since it's called directly in some places)
2022-05-25 13:53:32 +02:00
kkmuffme
5d8b5d197d micro-optimize condition
https://github.com/vimeo/psalm/pull/7997#pullrequestreview-983975049
2022-05-25 11:25:19 +02:00
kkmuffme
ed0db0f7ce igbinary_serialize code was missing in file 2022-05-25 10:52:41 +02:00
orklah
ee6c10563a
Merge pull request #7997 from kkmuffme/change-cache-hash-type-for-better-performance
change cache hash type for better performance
2022-05-24 18:27:42 +02:00
kkmuffme
acffb851f6 debug CI 2022-05-24 10:00:54 +02:00
kkmuffme
c1cef60e21 change cache hash type for better performance 2022-05-24 09:59:47 +02:00
orklah
4ce8a06227
Merge pull request #7981 from mathroc/callmap/array_unique-improvements
Improve array_unique callmap stubs
2022-05-23 21:29:40 +02:00
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