orklah
926a56a97c
Merge pull request #7230 from orklah/cleanup6
...
code grooming
2021-12-27 22:54:39 +01:00
orklah
3e29a3d961
unnecessary qualified names
2021-12-27 20:16:34 +01:00
Matthias Wirtz
309d1a4634
add samesite option here as well
2021-12-27 09:46:58 +01:00
Matthias Wirtz
2c93b4fe0e
add missing samesite array attribute
...
https://www.php.net/manual/en/function.session-set-cookie-params
When using the second signature, an associative array which may have any of the keys lifetime, path, domain, secure, httponly and samesite. The values have the same meaning as described for the parameters with the same name. The value of the samesite element should be either Lax or Strict. If any of the allowed options are not given, their default values are the same as the default values of the explicit parameters. If the samesite element is omitted, no SameSite cookie attribute is set.
2021-12-25 08:12:13 +01:00
Francois Botha
014e678e97
MySqli: some parameters are nullable
2021-12-20 16:00:25 +02:00
orklah
646ba983a0
Merge pull request #7140 from yethee/soap
...
Fixed compatibility with SoapClient
2021-12-15 00:55:57 +01:00
orklah
2cd7b19ee3
Merge pull request #7145 from villfa/fix/ldap_set_rebind_proc
...
Fix ldap_set_rebind_proc signature
2021-12-15 00:49:50 +01:00
orklah
41fe5534b6
Merge pull request #7159 from AndrolGenhald/bugfix/number-format-optional-arguments
...
Fix optional arguments in number_format (fixes #7158 ).
2021-12-15 00:47:35 +01:00
orklah
5ddf5df10d
Merge pull request #7155 from rarila/partials-conversion-2
...
Convertion of partials to full imports
2021-12-15 00:39:20 +01:00
orklah
dcb5234b69
remove ReflectionMethod::isStatic and add ReflectionFunctionAbstract::isStatic in 8.1
2021-12-14 18:30:31 +01:00
AndrolGenhald
10b6b9aef0
Fix optional arguments in number_format ( fixes #7158 ).
2021-12-14 09:10:05 -06:00
rarila
1c298c4605
Conversion of Psalm\Type
2021-12-14 02:31:22 +01:00
orklah
a51d16150d
fix CI
2021-12-13 23:35:48 +01:00
yethee
3a574fe072
Update signatures for SoapFault
2021-12-13 22:14:09 +03:00
Fabien Villepinte
53855f19b0
Update ldap_set_rebind_proc in Callmap_historical
2021-12-13 13:02:56 +01:00
Fabien Villepinte
3bd9bbddc7
Fix ldap_set_rebind_proc signature
2021-12-13 11:06:31 +01:00
yethee
0897714964
Update signatures of methods of SoapClient
2021-12-12 19:43:06 +03:00
Kamil Tekiela
88ce10b1dc
Fix count_chars stubs
2021-12-07 21:31:05 +00:00
Bruce Weirdan
142ee57836
Refine *strlen()
return type to exclude negative integers
...
Fixes vimeo/psalm#7062
2021-12-05 03:57:36 +02:00
Kamil Tekiela
b854f436ff
Improve count_chars stub
2021-12-04 20:56:17 +00:00
orklah
396ff967e0
Merge pull request #7042 from kamil-tekiela/get_class
...
get_class does not return false
2021-12-02 13:12:36 +01:00
orklah
90d421635d
Merge pull request #7030 from ostrolucky/rediscluster-getoption
...
Fix RedisCluster::getOption() and RedisCluster::setOption() argument types
2021-12-02 07:45:36 +01:00
Kamil Tekiela
19062e56a3
get_class does not return false
...
Technically all functions could return false or null when a wrong parameter is provided, but that was undefined behavour in PHP <8 and should not be relied upon.
2021-12-01 21:36:13 +00:00
orklah
d7d4b37ac1
year in getdate can be before 1970 for negative timestamps
2021-12-01 20:18:25 +01:00
Bruce Weirdan
28c4f86993
Merge pull request #7027 from rarila/issue-6914
2021-11-30 23:34:00 +02:00
Gabriel Ostrolucký
7b78a7e64c
Fix RedisCluster::getOption() and RedisCluster::setOption argument types
...
See aac42cd335/redis_cluster.stub.php (L122)
Related https://github.com/vimeo/psalm/pull/6853
2021-11-30 21:22:48 +01:00
orklah
ea03410645
refine getdate array structure
2021-11-30 21:18:10 +01:00
orklah
02b35ccada
Merge pull request #7023 from orklah/abs
...
refine abs return type
2021-11-29 21:20:26 +01:00
orklah
9f918a8314
refine abs return type
2021-11-29 21:16:51 +01:00
ralila
2c94ce0185
Adjust callmaps
2021-11-29 14:23:57 +01:00
Bruce Weirdan
5197a68192
Merge pull request #6987 from pilif/fix-openssl-open-callmap
2021-11-29 08:13:23 +02:00
Philip Hofstetter
323b74b8d8
fix all openssl_* signatures for PHP >= 8.0
...
while some signatures were already updated in the past, many others were
not.
This commits fixes all signatures to match what the PHP manual
specifies.
2021-11-29 06:21:42 +01:00
Kamil Tekiela
020c5f0d15
Fix mysqli_fetch_fields stub
2021-11-28 22:43:34 +00:00
Kamil Tekiela
84079d1833
More specific array return types
2021-11-28 22:43:34 +00:00
Kamil Tekiela
f7aa5ea4b9
Expand mysqli_fetch_array
2021-11-28 11:15:34 +00:00
Kamil Tekiela
0f22bc4c18
mysqli_fetch_* functions return mixed values
2021-11-28 10:54:07 +00:00
Bruce Weirdan
41256c74d1
Added enum-related stubs and callmaps
...
Fixes vimeo/psalm#6430
2021-11-28 11:41:43 +02:00
Kamil Tekiela
b44c16bc68
Fix signatures of gmstrftime and strftime
2021-11-27 22:55:34 +00:00
Kamil Tekiela
c4c97d3018
Stub fixes for mysqli extension
...
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2021-11-24 22:21:56 +00:00
orklah
e13c48a719
Merge pull request #6927 from veewee/soap-stub-response
...
Invalid SoapClient::__doRequest() response type
2021-11-22 21:23:42 +01:00
Thomas Gerbet
84d327678b
usleep(0) is valid
...
Similar to ef9858c458
.
usleep() only throws the value is < 0:
```
Uncaught ValueError: usleep(): Argument #1 ($microseconds) must be greater than or equal to 0
```
2021-11-22 11:58:39 +01:00
Benjamin Morel
ef9858c458
sleep(0) is valid
2021-11-22 09:47:34 +01:00
Ciaran McNulty
c91e245074
Update data types of file_put_contents
...
The main aim is to exclude boolean false, which could be coerced into '' in the following cases:
```
file_put_contents('outfile', file_get_contents('invalid_file')); // false instead of string
file_put_contents('outfile', fopen('invalid_file', 'r')); // false instead of resource
file_put_contents('outfile', file('invalid_file')); // false instead of array
```
2021-11-21 20:57:45 +00:00
MallardDuck
8292967ec4
Update crypto to use object-like array
2021-11-20 23:56:29 -05:00
MallardDuck
25cd14fe12
correct callmaps for stream_get_meta_data return
2021-11-20 12:16:22 -05:00
Kamil Tekiela
d0528a37f6
Update CallMap_80_delta.php
2021-11-16 12:02:39 +00:00
Kamil Tekiela
9f0441fcd9
Update callmap
2021-11-16 12:00:58 +00:00
Kamil Tekiela
2b05f66d36
session_set_cookie_params signature changed in 8.0
2021-11-16 11:37:19 +00:00
Toon Verwerft
df1947922f
Invalid SoapClient::__doRequest() response type
2021-11-15 14:18:34 +01:00
ralila
09933db94a
Adjusting delta/historical callmaps
2021-11-13 22:59:19 +01:00
ralila
8dee0476da
Fix mb_convert_encoding to accept any array.
2021-11-13 20:06:49 +01:00
Toon Verwerft
b72da42dd1
Remove invalid SoapClient::__doRequest stub
2021-11-13 10:27:48 +01:00
575fd1c55a
Small fixes
2021-11-11 12:05:03 +01:00
290002c045
Small fix
2021-11-08 17:26:42 +01:00
ed6f8e0dd7
Use positive integers for various time functions
2021-11-08 17:26:39 +01:00
Bruce Weirdan
d844eabdfa
Merge pull request #6846 from jirkace/openssl_sign_callmap_php80_fix
...
Fixed callmap for function openssl_sign, it changed in PHP 8.0 (modif…
2021-11-08 12:53:40 +02:00
blackie
8fde59f885
fixup! fixup! Fixed callmap for function openssl_sign, it changed in PHP 8.0 (modified types for param private_key) #6842
2021-11-08 08:07:10 +01:00
Bruce Weirdan
703312278f
Merge pull request #6853 from jirkace/rediscluster_setoption_argument_types
2021-11-08 00:11:29 +02:00
blackie
e96bb7823c
fixup! Fixed callmap for function openssl_sign, it changed in PHP 8.0 (modified types for param private_key) #6842
2021-11-07 20:36:26 +01:00
blackie
159a42c581
fixup! RedisCluster::setOption() argument types incorrect #4708
2021-11-07 20:18:31 +01:00
Bruce Weirdan
7fc4ae3a50
Merge pull request #6852 from jirkace/reflectionclass_newinstanceargs_docblock_fix_php80
2021-11-07 18:59:38 +02:00
blackie
a6b91384c1
RedisCluster::setOption() argument types incorrect #4708
2021-11-07 16:45:28 +01:00
blackie
cb9bf8b5af
Fixed docblock for newInstanceArgs for PHP 8.0 #5136
2021-11-07 16:16:23 +01:00
blackie
bf34a3b486
DOMParentNode and DOMChildNode stubs (php 8) are missing #6771
2021-11-07 15:54:54 +01:00
blackie
d5a5db12a2
Fixed callmap for function openssl_sign, it changed in PHP 8.0 (modified types for param private_key) #6842
2021-11-07 01:44:00 +01:00
S.M. Ataur Rahman
bcc3023ac9
callmap updated as mysqli __construct()/connect() return bool in php 8.1
2021-11-03 22:02:24 +06:00
S.M. Ataur Rahman
52265d926f
parameters of mysqli __construct()/connect() are nullable in php 8.0
2021-11-03 21:56:31 +06:00
S.M. Ataur Rahman
a391de6ab4
added mysqli::connect() to callmap
2021-11-03 21:41:45 +06:00
Alexey Borzov
ae4294f61d
Reverted parameter names for '1 signatures, removed unneeded '1 signatures
2021-10-29 18:34:00 +03:00
Alexey Borzov
a96b93a1e3
Batch 2: checked all the signatures against PHP docs and ext/pgsql code
2021-10-29 02:22:55 +03:00
Alexey Borzov
629100aa23
Batch 1: fix 8.1 return values for query execution methods and pg_lo_open()
2021-10-28 19:44:56 +03:00
Paolo L. Scala
f445ef7dd1
Updated openssl_pkey_get_private function signature
...
Fixes #6469
2021-10-27 16:18:30 +02:00
Semercom
016db6869c
issue-6737: fix CallMap_80 and CallMap_historical imagecropauto() arguments
2021-10-25 21:55:39 +03:00
Semercom
a9d921e9c0
issue-6737: fix CallMap imagecropauto() arguments
2021-10-25 21:29:18 +03:00
Tomas Norre Mikkelsen
b39b523fb4
Convert pgsql functions to use object instead of a resource
2021-10-14 19:30:03 +02:00
orklah
911076939c
Merge pull request #6628 from orklah/phpparser2
...
Php-Parser 4.13
2021-10-11 20:42:32 +02:00
Valentin Udaltsov
910258b44c
Added optional offsets 3 and 4 to PDO::errorInfo and PDOStatement::errorInfo
2021-10-10 13:48:52 +03:00
orklah
870ee4ff93
->args to ->getArgs
2021-10-09 23:37:04 +02:00
Valentin Udaltsov
e7dd53d4d1
Refined PDO::errorInfo, PDOStatement::errorInfo
...
See https://www.php.net/manual/ru/pdo.errorcode.php and https://www.php.net/manual/ru/pdostatement.errorinfo.php .
2021-10-09 22:09:10 +03:00
Ishan Vyas
bdb494563e
chore: remove FiberExit class from Fiber stubs
...
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
2021-10-09 12:31:52 +05:30
Ishan Vyas
b69e670060
chore: remove FiberExit class
2021-10-09 09:34:39 +05:30
Ishan Vyas
e917546801
feat: Add Fiber stubs
...
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
2021-10-08 23:27:48 +05:30
Manuel VACELET
d561b29e4d
ReflectionClass::getReflectionConstants has a filter parameter
...
It was introduced in php 8.0.
Fixes #6588
2021-10-05 14:15:28 +02:00
Tomas Norre Mikkelsen
960af957db
Convert PSpell resources to objects
2021-10-04 13:41:31 +02:00
Tomas Norre Mikkelsen
4b8f212ab8
Fix incorrect parameters names
2021-10-04 12:58:03 +02:00
Tomas Norre Mikkelsen
993349d64d
Convert LDAP resources to objects
2021-10-04 12:57:12 +02:00
orklah
73495d73e4
Merge pull request #6567 from tomasnorre/imap-rosource-to-object
...
Convert imap functions to use object instead of a resource
2021-10-04 00:35:04 +02:00
orklah
246f8173e0
Merge pull request #6566 from tomasnorre/fileinfo-resource-to-object
...
Convert finfo functions to use object instead of a resource
2021-10-04 00:34:48 +02:00
Ishan Vyas
79270c01fd
chore: make changes in CallMap.php file
...
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
2021-10-03 22:32:17 +05:30
Ishan Vyas
5266114222
chore: make mime field optional
...
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
2021-10-03 22:31:06 +05:30
Ishan Vyas
75755ac4dc
Add CURLStringFile in classmap delta
2021-10-03 12:09:13 +05:30
Tomas Norre Mikkelsen
232ebb7e57
Convert imap functions to use object instead of a resource
2021-10-02 11:58:08 +02:00
Tomas Norre Mikkelsen
518e18f128
Convert finfo functions to use object instead of a resource
2021-10-02 10:16:42 +02:00
Sergei Predvoditelev
31763b3628
Fix fopen
2021-09-30 17:12:54 +03:00
Paweł Słowik
096a6dbe5c
Remove undocumented / untested XlsWriter methods
2021-09-28 17:56:20 +02:00
Paweł Słowik
e1727ffe22
Update XlsWriter signatures
2021-09-28 17:56:20 +02:00
Paweł Słowik
2e51a9a8a7
Permit null user_agent to get_browser()
2021-09-17 16:46:27 +02:00
Semyon
5c375cb3c0
Revert mb_str_split return signature to list<string>
2021-09-16 15:27:34 +03:00
ssnepenthe
655c000009
Update return type for xdebug_get_profiler_filename()
...
Returns false when profiler is not active, string otherwise
2021-09-14 13:45:23 -07:00
Christopher Bray
847f1e41e7
Make imageavif arguments optional
2021-09-08 09:17:06 +01:00