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

573 Commits

Author SHA1 Message Date
Jorg Sowa
c5fc82c449 Define historical definitions of session_get_cookie_param 2024-03-25 23:04:26 +01:00
Jorg Sowa
3e493d95a4 Specified array return type of session_get_cookie_params 2024-03-22 00:53:27 +01:00
Thomas Landauer
2ae91aa95c
Update CallMap_historical.php 2024-03-21 20:33:41 +01:00
Thomas Landauer
2f908817d4
Update CallMap.php 2024-03-21 18:34:34 +01:00
kkmuffme
c174e35f15 Fix https://github.com/vimeo/psalm/issues/7550 2024-03-14 00:55:49 +01:00
Bruce Weirdan
5c780c7b05 $resource parameter of mkdir() is nullable since PHP 7.3
Fixes vimeo/psalm#10796
2024-03-09 20:06:47 +01:00
Theodore Brown
33071242aa Update CallMap for sqlsrv_connect and sqlsrv_errors to match reflection 2024-03-03 12:08:05 -06:00
Bruce Weirdan
fa5f15058b
Merge pull request #10091 from vudaltsov/improve-refelection-stubs 2024-02-07 22:18:56 -04:00
Bruce Weirdan
f9044cb4e4
Narrow ord() return type to int<0,255>
Fixes vimeo/psalm#10667
2024-02-07 21:49:59 +01:00
Valentin Udaltsov
f9ff9d34f0 Added ReflectionParameter::getPosition to CallMap_historical.php 2024-02-07 02:47:49 +03:00
Valentin Udaltsov
07a64f6894 Improved Reflection stubs
ReflectionParameter::getPosition() is non-negative-int.
ReflectionMethod name property is always non-empty-string.
ReflectionAttribute::getTarget() returns Attribute::TARGET_* instead of int-mask. Even for attributes of promoted properties (https://3v4l.org/rpM1t).
*::getAttributes() always returns a list (https://3v4l.org/LYAMb).
2024-02-07 02:39:56 +03:00
b42c273556 Revert partial mistakenly pushed fix
This reverts commit 7d19f30961.
2024-02-06 23:42:11 +01:00
7d19f30961
Fix #10667 2024-02-06 23:35:18 +01:00
Bruce Weirdan
5d671a4775
Merge pull request #10630 from kkmuffme/additional-fix-for-inconsistent-basedir 2024-02-05 15:01:51 -04:00
Ulrich Eckhardt
9fd17cf749 CallMap: Improve returntype annotation for inotify_read()
In case of success, it returns an array of associative arrays with defined fields:
- `wd` is a watch descriptor
- `mask` is a bit mask of events
- `cookie` is a unique id to connect related events
- `name` is the name of a file
2024-02-02 10:10:45 +01:00
Ulrich Eckhardt
1698239677 CallMap: Adjust return type for inotify_add_watch() to int|false
See https://github.com/vimeo/psalm/issues/10636
2024-02-02 09:35:25 +01:00
kkmuffme
41ce826f6d improve file_put_contents return type 2024-02-01 20:11:06 +01:00
kkmuffme
d2e5a0722b improve realpath and readlink return type 2024-02-01 20:11:06 +01:00
kkmuffme
d79f77215b improve getcwd return type 2024-02-01 20:11:06 +01:00
fluffycondor
6aa2ddfe1c Fix ownerDocument type 2024-01-31 16:10:51 +06:00
Bruce Weirdan
9372adb980
readgzfile() is impure
Fixes vimeo/psalm#10528
2024-01-27 15:38:27 +01:00
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