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

552 Commits

Author SHA1 Message Date
kkmuffme
d209bab9f5 Fix mb_get_info can return null - CI failing bc of reflection
See https://github.com/php/php-src/issues/12753
2024-01-13 01:12:34 +01:00
kkmuffme
7658fc4d33 unserialize change to class-string 2024-01-11 18:43:15 +01:00
kkmuffme
f04be62e8b can only be positive 2024-01-11 18:40:45 +01:00
orklah
abfbdedf53
Merge pull request #10498 from kkmuffme/filter-input-more-detailed
filter_input & filter_var return type more specific
2024-01-09 21:57:34 +01:00
Ivan Kurnosov
891036ef3b Fixed SessionUpdateTimestampHandlerInterface parameter names
Close https://github.com/vimeo/psalm/issues/10512
2024-01-03 10:55:23 +13:00
kkmuffme
dee555daaf filter_input & filter_var return type more specific 2023-12-17 20:34:10 +01:00
kkmuffme
06f6daeab2 strtok always returns a non-empty-string when it does not return false 2023-12-17 16:07:17 +01:00
kkmuffme
4f25ccee40 update define types to be correct 2023-11-29 08:51:15 +01:00
1e2e2248d9 Fix wrong type 2023-11-26 19:34:49 +01:00
Andreas Braun
acf92537c1
Update MongoDB stubs for 1.17 2023-11-23 10:52:24 +01:00
orklah
d92523d305
Merge pull request #10399 from niconoe-/fix-10398
Fix #10398: add missing methods of ReflectionProperty class in CallMap and CallMap deltas.
2023-11-22 21:22:39 +01:00
Nicolas Giraud
ed1ea524c9 Fix #10398: add missing methods of ReflectionProperty class in CallMap and CallMap deltas. 2023-11-22 17:19:22 +01:00
kkmuffme
f3e9263ea4 Fix array_filter callback type
Fix https://github.com/vimeo/psalm/issues/9068
2023-11-18 08:55:19 +01:00
robchett
3578b42e5c Add stubs for rdKafka
Fixes #3406
2023-11-08 09:51:12 +00:00
3b66272aa0 More rector fixes 2023-10-21 20:45:09 +02:00
Mathieu Rochette
54a31b64a4
str_replace / substr_replace signature improvements 2023-10-16 22:45:39 +02:00
tuqqu
2baa094f58 Remove duplicate from impure list 2023-10-03 02:17:26 +02:00
tuqqu
b05ffeaf20 Add socket_shutdown stream_socket_shutdown functions to impure list 2023-10-03 02:17:08 +02:00
robchett
b96d5a3eba Add openssl_*_export_to_file to impure functions 2023-09-17 11:37:52 +01:00
George Steel
6cd4c48e0b
date_default_timezone_(get|set) return|accept non-empty-string
Signed-off-by: George Steel <george@net-glue.co.uk>
2023-09-10 10:26:53 +01:00
George Steel
e98ed16577
DateTimeZone::getName() always returns non-empty-string and cannot be constructed with an empty string
Signed-off-by: George Steel <george@net-glue.co.uk>
2023-09-09 23:48:49 +01:00
Bruce Weirdan
b6ed045746
strrchr(): $before_needle parameter
Refs: php/php-src#11430
2023-08-26 01:36:05 +02:00
Bruce Weirdan
357a0a3324
Merge pull request #10136 from weirdan/extract-impure-functions-list 2023-08-21 08:04:57 +02:00
Bruce Weirdan
97fc480aca
Added more gc_status return fields
Fixes vimeo/psalm#10022
2023-08-21 07:10:24 +02:00
Bruce Weirdan
e6aa3fd23c
Extract the list of impure functions into its own dictionary 2023-08-21 06:14:56 +02:00
Bruce Weirdan
9d7d887080
Fix hash_pbkdf2 $options parameter
`$options` parameter actually appeared in 8.1 (in [1]) but wasn't documented until 8.1.22

* [1] 110b4e9094
2023-08-13 21:19:58 +02:00
Kamil Tekiela
0b434514d2 Some mysqli methods return true always 2023-08-12 19:29:31 +01:00
Kamil Tekiela
c757054144 mysqli_field_seek returns true 2023-08-12 19:29:10 +01:00
Bruce Weirdan
c83b0c96a9
Fixed DOMDocument::load* signatures
Prior to 8.0 those methods could be called statically, returning a
`DOMDocument` instance. In 8.0 and above they no longer can be.
2023-08-01 11:56:46 +02:00
Thomas Bley
637dcc4425 #10026 fixed case mismatches in CallMap_83_delta 2023-07-21 23:11:20 +02:00
Thomas Bley
7f39dab07b #10026 moved some more signature changes to CallMap_83_delta 2023-07-21 22:26:05 +02:00
Thomas Bley
51058eb45e #10026 cleanup 2023-07-20 02:02:28 +02:00
Thomas Bley
741d19682a #10026 cleanup signature for hash_pbkdf2() 2023-07-20 01:43:31 +02:00
Thomas Bley
ee185b9ad8 #10026 cleanup method signatures 2023-07-20 01:28:46 +02:00
Thomas Bley
2e0f1e25e5 #10026 extended callmap delta for php 8.3 2023-07-20 00:58:18 +02:00
kkmuffme
05f4e45026 more historical 2023-07-05 17:04:43 +02:00
kkmuffme
3d8629fddc update historical 2023-07-05 16:58:14 +02:00
kkmuffme
ce7b78cf8f offsetExists/Get/Set/Unset types were too generic since only array key types + null lead to expected results 2023-07-05 16:30:17 +02:00
Yannick Gottschalk
f93d23899d Fix glob CallMap and stub to prevent crash on alpine (and possibly other systems) 2023-06-25 13:17:13 +02:00
Andreas Braun
47569ed703
Add call map entries for MongoDB functions 2023-06-20 12:19:54 +02:00
Andreas Braun
0e26bc79aa
Update callmap for ext-mongodb 1.16 2023-06-20 12:01:08 +02:00
kkmuffme
e3f589d79e improve printf,... callmap 2023-06-09 12:59:13 +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
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
kkmuffme
a33c80d291 dirname level must be > 0 otherwise fatal 2023-05-30 16:10:08 +02:00
Kamil Tekiela
fa3f4d252c base64_decode returns false only in strict mode 2023-05-27 23:23:01 +01:00
Hans Mackowiak
7a03f2390d
glob: allow empty string for pattern 2023-05-24 11:14:20 +02:00