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

12266 Commits

Author SHA1 Message Date
Jack Worman
b712355775 getopt return type fix 2022-12-19 07:02:50 -06:00
orklah
96cb44b90a
Merge pull request #8934 from theodorejb/fix-loop-int-range
Allow conditions inside loops to preserve or narrow int range
2022-12-19 00:44:36 +01:00
Theodore Brown
0f4db694df Allow conditions inside loops to preserve or narrow int range
Fixes #7555, fixes #8020, fixes #8865
2022-12-18 17:35:14 -06:00
orklah
156c1089a9
Merge pull request #8927 from jack-worman/Trailing_commas
Trailing commas
2022-12-19 00:04:47 +01:00
Bruce Weirdan
7afeee54d5
Merge pull request #8933 from jack-worman/ReflectionClass_implementsInterface_assert
Closes https://github.com/vimeo/psalm/issues/8920
2022-12-18 18:12:35 -04:00
Jack Worman
e7d4d697ac Reflection class stub updates 2022-12-18 14:35:41 -06:00
Jack Worman
1c19260cdd Require trailing commas 2022-12-18 13:20:31 -06:00
orklah
c52970958d
Merge pull request #8931 from VincentLanglet/reflectionClass2
Fix getParentClass stub
2022-12-18 19:42:27 +01:00
Vincent Langlet
50cf28fba1 Fix getParentClass stub 2022-12-18 19:36:13 +01:00
orklah
b6faa3e96b
Merge pull request #8930 from VincentLanglet/reflectionClass
Fix ReflectionClass stub
2022-12-18 19:15:37 +01:00
Vincent Langlet
9b5630bea4 Fix ReflectionClass stub 2022-12-18 19:07:41 +01:00
orklah
8223332185
Merge pull request #8926 from danog/fix_8925
Skip intersection of template types during inheritance check
2022-12-18 18:53:07 +01:00
orklah
da001c46cd
Merge pull request #8929 from danog/fix_8923
Fix #8923
2022-12-18 18:52:37 +01:00
orklah
cbf37f7e35
Merge pull request #8928 from fluffycondor/md5-return
Make md5 return type more precise
2022-12-18 18:28:44 +01:00
2f5d0a4a9f Fix #8923 2022-12-18 18:19:22 +01:00
fluffycondor
cac273e04f Make md5 return type more precise 2022-12-18 23:15:25 +06:00
70d1a5a3c5 Add test 2022-12-18 18:14:43 +01:00
orklah
9f5e4f58b2
Merge pull request #8924 from danog/array_merge
More array_merge improvements
2022-12-18 18:00:59 +01:00
bccda92f31 Skip intersection of template types during inheritance check 2022-12-18 17:12:04 +01:00
c454a181cc Fixes 2022-12-18 15:00:15 +01:00
098d5020d0 array_merge_recursive 2022-12-18 14:52:44 +01:00
1dd062a810 Fix #2481 2022-12-18 14:50:51 +01:00
b83226a0db More array_merge improvements 2022-12-18 14:37:19 +01:00
orklah
7d95f15e30
Merge pull request #8922 from fluffycondor/sprintf-non-empty-string
Make `sprintf` return `non-empty-string` when possible
2022-12-18 12:35:59 +01:00
fluffycondor
9a22d682f5 Simplify conditional return 2022-12-18 17:15:24 +06:00
fluffycondor
dd76a1e481 Fix tests 2022-12-18 16:57:36 +06:00
fluffycondor
6f230edc8b Add one more test 2022-12-18 16:53:19 +06:00
fluffycondor
a8b249b786 Remove no longer necessary @vars 2022-12-18 16:53:19 +06:00
fluffycondor
987981b12a Make sprintf return non-empty-string when arguments non-empty-strings too 2022-12-18 16:53:19 +06:00
orklah
a76a1d1a52
Merge pull request #8916 from jack-worman/Remove_useless_ifs
Remove useless ifs
2022-12-17 15:54:28 +01:00
orklah
62ced63375
Merge pull request #8910 from jack-worman/Last_property_typehints
Last property typehints
2022-12-17 15:53:36 +01:00
Jack Worman
2f677f600b CS fixes 2022-12-17 08:13:32 -06:00
orklah
2d9e3f42f6
Merge pull request #8918 from sasezaki/preserveWhiteSpace
Fix DOMDocument's propertery name preserveWhiteSpace
2022-12-17 11:37:03 +01:00
sasezaki
9c1b2520d1 Fix DOMDocument's propertery name preserveWhiteSpace - #8915 2022-12-17 17:58:30 +09:00
orklah
5935012642
Merge pull request #8913 from weirdan/cast-object-with-properties-to-array
Recognize casts from object-with-properties to array
2022-12-17 09:28:17 +01:00
Bruce Weirdan
b57e5ba44a
Merge pull request #8917 from d4s6/patch-1 2022-12-17 04:07:31 -04:00
David Schwarz / Ringsdorf
3e1dd8d190
doc: FilterIterator added to list of built-in templates. 2022-12-17 07:02:07 +01:00
Jack Worman
30a8f71958 Remove useless ifs 2022-12-16 22:00:34 -06:00
Bruce Weirdan
425d9fa8bf
Recognize casts from object-with-properties to array
Previously `(array)(object)['a' => 1, 'b' => 'foo']` would result in
`array<array-key, mixed>`. Now it would be inferred as
`array{a:1,b:foo,...<array-key,mixed>}`
2022-12-16 20:12:02 -04:00
Jack Worman
9ce31a7709 Re-add short closure sniff 2022-12-16 17:02:10 -06:00
orklah
5afc3282d4
Merge pull request #8902 from kkmuffme/fix-never-static-calls
fix return type never for static function calls
2022-12-16 22:06:19 +01:00
Jack Worman
a52f35e5e1 Even more property typehints 2022-12-16 13:24:21 -06:00
orklah
4d0ddf6310
Merge pull request #8907 from danog/fix_array_merge
Fix array_merge edge case
2022-12-16 19:41:27 +01:00
2c00c64304 Bypass bug 2022-12-16 19:18:33 +01:00
f5b6889c32 Fix 2022-12-16 18:39:35 +01:00
992f26a8e7 Fix array_merge edge case 2022-12-16 18:10:46 +01:00
kkmuffme
eeb0c06173 fix return type never for static function calls 2022-12-16 11:55:31 +01:00
orklah
5132de22e0
Merge pull request #8900 from othercorey/fix-unreflectable
Fix remaining invalid unreflectable methods
2022-12-15 21:19:10 +01:00
orklah
f4d70384ee
Merge pull request #8885 from lptn/php-ext-with-deprecation
Deprecation message on loading php-ext stubs without explicitly declaring them as dependency or in a config
2022-12-15 21:17:38 +01:00
orklah
e69f88af5a
Merge pull request #8897 from jack-worman/Add_some_more_property_typehints
Add property typehints in Internal directory
2022-12-15 21:11:43 +01:00