Matthew Brown
216d8ae4ab
Make signature more specific cc @SignpostMarv
2019-07-05 10:44:20 -04:00
Matthew Brown
aa3df3f7a5
Add better support for preg_replace_callback
2019-07-05 10:40:05 -04:00
vadim2991
8e8fb2c286
Fix cal_from_jd function return types ( #1890 )
2019-07-02 10:20:33 -04:00
Teemu Koskinen
93c605b120
ImagickDraw color set methods accept string in addition of ImagickPixel ( #1887 )
2019-07-01 09:49:19 -04:00
Matthew Brown
8f1ed61ccb
Fix #1876 - allow any bool input for microtime
2019-06-30 09:58:04 -04:00
Matthew Brown
fbd8faadaf
Fix #1792 - allow scalar for sprintf
2019-06-15 11:56:59 -04:00
Brown
6eecb46b34
Fix #1725 - mcrypt_get_cipher_name was incorrect
2019-06-03 10:35:16 -04:00
Jørn Åne
0420865f72
Mark passphrase in openssl as nullable ( #1718 )
2019-06-01 08:53:11 -04:00
Matthew Brown
e31cdf3be5
Fix #1701 - allow count to be called on SimpleXMLElement
2019-05-29 07:56:06 -04:00
ADmad
2eae79060f
Fix argument type for sprintf(). ( #1697 )
...
* Fix argument type for sprintf().
* Fix argument types for mail().
2019-05-27 17:51:37 -04:00
Brown
30cbcb6c36
Add ImplementedParamTypeMismatch issue
...
Fixes #1633
2019-05-14 15:44:46 -04:00
Lars Moelleken
abc825a0c4
revert some changes for "array"-functions + merge fixes from phpstan
...
thx @bugreportuser
2019-05-12 19:37:46 -04:00
Lars Moelleken
399a337e09
revert "array_change_key_case()" changes
...
-> https://github.com/vimeo/psalm/pull/1605#discussion_r281034696
2019-05-12 19:37:46 -04:00
Lars Moelleken
0b5680f72f
fix return type of "array_combine()" && "array_replace()"
2019-05-12 19:37:46 -04:00
Matthew Brown
764678d836
Fix #1567 - remove extraneous union
2019-04-20 16:09:55 -04:00
Lars Moelleken
1a4e52c645
fixes from @villfa
...
-> ae368af8b3
2019-04-19 09:54:08 -04:00
Lars Moelleken
a3072d42b5
fix issue #1568
2019-04-19 09:54:08 -04:00
Lars Moelleken
74f3908555
"CallMap" fixes from phpstan
...
-> ae368af8b3
2019-04-16 11:23:32 -04:00
Lars Moelleken
4ef63b5a3f
[+]: fix "Iterator::key()" return type
...
-> https://github.com/phpstan/phpstan/issues/1382
2019-04-15 00:19:33 -04:00
Lars Moelleken
0686d347c4
fix "grapheme_strlen()" return type
...
-> see 852485d8ec/ext/intl/grapheme/grapheme_string.c (L87)
2019-04-14 10:15:17 -04:00
Lars Moelleken
da0d06ab0a
fix "mb_encode_numericentity()" without the "encoding" parameter
...
-> "The encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used." - https://www.php.net/manual/en/function.mb-encode-numericentity.php
2019-04-14 10:14:58 -04:00
Lars Moelleken
605364acd0
fix "iconv_strlen()" return type
...
-> some tests in "https://github.com/voku/portable-utf8 " fails if I remove the false check e.g. for this string:
// string with UTF-16 (LE) BOM + valid UTF-8 && invalid UTF-8
$string = "\xFF\xFE" . 'string <strong>with utf-8 chars åèä</strong>' . "\xa0\xa1" . ' - doo-bee doo-bee dooh';
2019-04-14 10:14:23 -04:00
Matthew Brown
ea20a2bd04
Fix #1540 - use correct comparison for callable param types
2019-04-12 00:44:10 -04:00
Brown
7848e97f36
Allow DateTime::getTimestamp to return false
2019-04-11 14:57:50 -04:00
Brown
be5a262deb
Add better handling for non-edge-case function calls
2019-04-11 14:53:21 -04:00
Brown
da163e926e
Add callmap fixes collected by @voku in #1541
2019-04-11 10:58:27 -04:00
Matthew Brown
34ebf5c099
Add a couple of callmap fixes
2019-04-11 08:16:15 -04:00
Matthew Brown
9bfd10630d
Update callmap from upstream psalm/PHPSignatures
2019-04-11 08:03:40 -04:00
Neznaenko Anton
c96fed64bc
minor callmap fixes for Mongo/MongoClient::__construct and ReflectionMethod::getClosure
2019-04-11 07:10:10 -04:00
Brown
7f8b47c5cf
Fix buggy behaviour around callable tests
2019-04-09 18:09:57 -04:00
Brown
5173c18cce
Fix calls after updating callmap
2019-04-09 16:52:32 -04:00
Brown
72e0774eaf
Add updates from PHPStan’s function map
2019-04-09 16:18:21 -04:00
Brown
41c722448a
Fix #1531 - improve hrtime return type
2019-04-03 17:08:37 -04:00
SignpostMarv
27378e7cb2
correcting call map as per observation by @bugreportuser in conversation on #1519 (previous commit made whilst operating under the assumption of old edge-cases with stackless errors & exception)
2019-03-31 13:03:19 -04:00
SignpostMarv
bef9d813a7
file and line can go a little funky if an error is triggered in a shutdown function, not sure what happens with type in those instances, but it is reasonably certain that message is always present as string
2019-03-31 13:03:19 -04:00
Tim van Dijen
aab2d48b13
ldap_exop_whoami returns false on error
2019-03-25 21:44:09 -04:00
Tim van Dijen
4fc4614267
ldap_get_attributes returns false on error
2019-03-25 21:44:09 -04:00
François Kooman
a78dd37b4e
DOMXPath::query can return false
2019-03-22 18:24:22 -04:00
Matthew Brown
8392faf77d
Fix #1448 and fix 1469 - functions can return false
2019-03-17 14:18:23 -04:00
bugreportuser
339a26c801
Fix getChildren return types
2019-03-07 23:20:42 -05:00
Matthew Brown
8d59ab736f
Allow password_hash to return false or null (this will change in 7.4)
2019-03-03 17:09:43 -05:00
Bruce Weirdan
e734b54aab
Fix vimeo/psalm#1409 ( #1410 )
2019-03-01 09:09:48 -05:00
François Kooman
fa26499dd9
fix return value for Sodium\crypto_aead_aes256gcm_decrypt
2019-02-27 14:24:57 -05:00
Brown
f5ce136dc7
Simplify handle type for pcntl_signal
2019-02-25 10:16:16 -05:00
bugreportuser
34b333cf7f
Fix file return types
2019-02-23 11:03:35 -05:00
Matthew Brown
3d4710c9d3
Add better checks for invalid array_map/array_filter args
2019-02-22 00:50:41 -05:00
Matthew Brown
5aaa68c214
Add better error message and also update callmap
2019-02-18 12:28:30 -05:00
Matthew Brown
12f1ffca11
Fix issue reconciling mixed vars inside loop
2019-02-18 11:39:05 -05:00
ADmad
8d54825582
Fix signature for datefmt_create().
2019-02-18 09:33:08 -05:00
bugreportuser
93bc7c477e
Fix mb return types
2019-02-17 13:16:55 -05:00
ADmad
7298638dff
Fix invalid return type in callmap.
...
apu_delete() only returns boolean.
http://php.net/manual/en/function.apcu-delete.php
2019-02-17 13:15:59 -05:00
bugreportuser
13f182bf9f
Revert "fixed password_hash signature"
...
This reverts commit 32377d6751
.
2019-02-16 22:13:05 -05:00
Matthew Brown
c383e61805
Fix #1296 - array_filter should allow scalar values
2019-02-07 13:05:17 -05:00
Matthew Brown
17541b415f
Fix #1191 - allow Psalm to check against different versions of PHP
2019-02-07 12:25:57 -05:00
Tim van Dijen
45d61fc861
Set proper return type for ldap methods
2019-02-01 14:15:34 -05:00
Brown
900d5fa9db
Fix ArrayIterator::unserialize return type
2019-01-30 14:56:10 -05:00
Brown
4bc2fcc2f8
Fix serialized interface usage and generic ArrayIterator offset methods
2019-01-30 14:32:08 -05:00
Bruce Weirdan
0358719037
Added DateTime::createFromImmutable()
...
It's available in PHP 7.3, see [FR 74668](https://bugs.php.net/bug.php?id=74668 ) and php/php-src#2484
2019-01-17 18:53:57 -05:00
Bruce Weirdan
32377d6751
fixed password_hash signature
...
fixes vimeo/psalm#1188
2019-01-09 12:32:06 -05:00
Matthew Brown
5b2d796c30
Fix up callmap
2019-01-08 21:57:22 -05:00
Matthew Brown
dc2f4929d4
Add changes from PHPStan, thanks @voku
2019-01-08 21:44:50 -05:00
Matthew Brown
2f30132d94
Add Phan updates to callmap
2019-01-08 21:19:11 -05:00
ADmad
407e4473f7
Improve callmap possibly false value.
...
Similar to #1147 .
2019-01-05 08:28:13 -05:00
Matthew Brown
571c1d7413
Improve callmap possibly false value
...
Fixes #1147
2018-12-26 11:25:10 +01:00
Matthew Brown
e844fb6491
Add wider return type to Exception::getCode and Throwable::getCode
...
Fixes #1148
2018-12-26 11:21:56 +01:00
Bruce Weirdan
f84224b7e9
fixed collator method return types
2018-11-29 09:45:02 -05:00
Vasily Kartashov
fe6713d561
Adding false
to ftell
result type,
...
Adding properties to `stream_get_meta_data` result array
2018-11-21 08:28:44 -05:00
Matthew Brown
a4507b068e
Fix #1081 - allow PDO::prepare to return false
2018-11-13 00:38:14 -05:00
Brown
dc834fdb01
Default allowStringToStandInForClass to true and fix errors found
2018-11-12 12:03:55 -05:00
Matthew Brown
4688b25fd9
Move internal classes to own namespace
2018-11-12 11:20:59 -05:00