1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00
Commit Graph

12024 Commits

Author SHA1 Message Date
orklah
dbb8815813
Merge pull request #8585 from gphargreaves/#8315/concat-non-empty-strings
Add additional checks for concat of non-empty strings to return non-falsy
2022-10-15 14:37:11 +02:00
orklah
61ef140e28
Merge pull request #8579 from ADmad/patch-2
Fix template param for SplDoublyLinkedList
2022-10-15 14:35:14 +02:00
ADmad
9bd4d7a740 Fix template param for SplDoublyLinkedList.
It's key is always an integer.
2022-10-14 11:54:53 +05:30
Greg Hargreaves
b89ff32b7a Remove duplicated numeric type declaration 2022-10-14 02:00:25 +01:00
Greg Hargreaves
06581ce4b0 Add additional checks for concat of non-empty strings to return non-falsy 2022-10-14 01:54:06 +01:00
Greg Hargreaves
8849e8ca38 Fix test for DateTimeImmutable sub method return type 2022-10-14 00:59:54 +01:00
Greg Hargreaves
ef0d2256a6 Remove link to php-src as was part of the documented reason for the return type false 2022-10-14 00:56:20 +01:00
Greg Hargreaves
f573ef5163 Correct return type of DateTimeImmutable sub method stub 2022-10-14 00:49:57 +01:00
orklah
e7f05c3f55
Merge pull request #8578 from Nicelocal/fix_6983_8564
Fix #6983 #8564
2022-10-13 21:57:12 +02:00
orklah
f8d1dd82c8
Merge pull request #8577 from cristianobaptista/fix/8576
fix mapped property type for DOMNode childNodes
2022-10-13 19:33:43 +02:00
a2b03e4f52 cs-fix 2022-10-13 13:54:18 +02:00
6e32dc02fc Improvements 2022-10-13 13:53:03 +02:00
8c9558c92b Fix #6983, #8564 2022-10-13 13:42:35 +02:00
Cristiano Baptista
f2ea9e5b3e fix mapped property type for DOMNode childNodes 2022-10-13 13:36:23 +02:00
orklah
bb9aabe5b1
Merge pull request #8570 from Nicelocal/fix_8569
Fix #8569
2022-10-12 20:59:04 +02:00
e43c6c1a13 cs-fix 2022-10-12 19:54:52 +02:00
orklah
8d874aa627
Merge pull request #8571 from Nicelocal/fix_8562
Fix #8562
2022-10-12 19:34:35 +02:00
a7af027645 Fix #8562 2022-10-12 11:40:29 +02:00
3ac0bce203 Fix #8569 2022-10-12 11:24:42 +02:00
orklah
7ec5ffbd5f
Merge pull request #8567 from nosnickid/fix-min-max-return-type
Fix MinMaxReturnTypeProvider when handling TDependentListKeys
2022-10-11 19:09:17 +02:00
orklah
eb6a347913
Merge pull request #8566 from tvdijen/bugfix/lookupNamespaceURI
Fix callmap for DOMNode methods
2022-10-11 19:04:07 +02:00
Steven Dickinson
68f6ba873e Fix MinMaxReturnTypeProvider when handling TDependentListKeys 2022-10-11 14:13:40 +01:00
Tim van Dijen
7144551940 Fix parameter + return type for lookupNamespaceURI + lookupPrefix 2022-10-11 13:05:49 +02:00
orklah
e440b343ef
Merge pull request #8555 from kkmuffme/phpredis-methods-return-false-on-failure
Update Phpredis stubs to return false on failure
2022-10-10 18:32:24 +02:00
orklah
99395bbe57
Merge pull request #8561 from kkmuffme/more-specific-superglobals-feedback-update
More specific superglobals feedback update
2022-10-10 18:15:44 +02:00
orklah
60129819f5
add import 2022-10-10 18:10:49 +02:00
orklah
0f6891c757
fix typo 2022-10-10 18:07:26 +02:00
kkmuffme
3a420f4f7a phpunit bool|string 2022-10-10 17:06:00 +02:00
kkmuffme
0da493b5bb fix docs to match example 2022-10-10 16:28:46 +02:00
kkmuffme
1e6019ddde size and error in $_FILES more specific 2022-10-10 16:18:27 +02:00
kkmuffme
fa53050483 fix $_FILES 2022-10-10 16:07:14 +02:00
kkmuffme
b5f6da7285 add common phpunit $_SERVER values bool
Fix https://github.com/vimeo/psalm/issues/8556
2022-10-10 14:31:35 +02:00
264e146cef cs-fix 2022-10-10 13:03:02 +02:00
26f9b2cd6a Add suppresses 2022-10-10 13:00:46 +02:00
deaa6bd2ea Add purity issues to baseline 2022-10-10 12:53:13 +02:00
8a7b201b2c Update 2022-10-10 12:38:57 +02:00
2e8fd6fc1d Add flag 2022-10-10 11:46:47 +02:00
fe17720441 Revert 2022-10-10 11:43:04 +02:00
orklah
b424de92d2
Merge pull request #8553 from lptn/4.x
Update dictionaries for hash ext functions
2022-10-09 17:57:14 +02:00
kkmuffme
88ba8452c4 some more string values 2022-10-09 17:01:38 +02:00
kkmuffme
5bfc0f960b force $value to be string
technically all stringable types work https://github.com/phpredis/phpredis/issues/1735#event-7529843256 however they're all cast to string implicitly, which unevitably leads to unexpected results (see riskyCast,...)
2022-10-09 16:53:30 +02:00
kkmuffme
47317205c1 small improvement for return type of mGet 2022-10-09 16:51:26 +02:00
kkmuffme
dfa82366d7 add false return type to additional phpredis functions
address https://github.com/phpredis/phpredis/pull/2120#issuecomment-1166644919 - weedwacker method, as I don't have time to check it all one by one
2022-10-09 16:46:43 +02:00
Alies Lapatsin
ea5f4cb569 Add PHP 8.0 delta for hash_hkdf() 2022-10-09 17:40:52 +03:00
Alies Lapatsin
30dc46528d Cleaup $ignoredFunctions 2022-10-09 17:40:36 +03:00
Alies Lapatsin
198a4ba9b0 Return non-empty-string by hash functions 2022-10-09 17:31:14 +03:00
Alies Lapatsin
ee86d6360c
Remove extra changes 2022-10-09 18:05:35 +04:00
Alies Lapatsin
3c3839b5cb
Update hash(), hash_file() and hash_init() types
see https://github.com/php/php-src/blob/php-8.1.5/ext/hash/hash.stub.php
2022-10-09 18:01:27 +04:00
Alies Lapatsin
dec8d0edc2
Mark hash functions as non-false
See https://github.com/php/php-src/issues/7759 and PR https://github.com/phpstan/phpstan-src/pull/822/files#
2022-10-09 17:49:17 +04:00
orklah
52e96bea38
Merge pull request #8542 from gphargreaves/class-constant-named-class
Add check for class const with reserved word 'class'
2022-10-07 18:13:24 +02:00