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

11125 Commits

Author SHA1 Message Date
Côme Chilliet
8e70aa3a77
Fix ReflectionExtension::getVersion signature in CallMap_historical.php as well
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-11-07 09:12:36 +01:00
Côme Chilliet
24581dfecb
Fix return type of ReflectionExtension::getVersion
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-11-03 15:08:27 +01:00
orklah
85b5436776
Merge pull request #8650 from VincentLanglet/serialize
Do not report serialize as unused
2022-11-02 23:24:37 +01:00
Vincent Langlet
0bdfc4b60b Mark serialize as impure only for object 2022-11-02 23:08:03 +01:00
Vincent Langlet
ef0a17ee11 Do not report serialize as unused 2022-11-02 22:52:42 +01:00
orklah
761d67faa6
Merge pull request #8641 from BenMorel/xmlreader
Fix XMLReader::expand() nullable parameter $baseNode
2022-11-01 19:54:48 +01:00
orklah
d3f4240d6a
Merge pull request #8643 from franmomu/patch-1
Allow to set PHP 8.2 version
2022-11-01 19:52:59 +01:00
Fran Moreno
933caa8f69
Allow to set PHP 8.2 2022-11-01 16:25:03 +01:00
Benjamin Morel
ee7fc0fad8 Fix XMLReader::expand() nullable parameter $baseNode 2022-11-01 13:26:41 +01:00
orklah
3f0107e0c7
Merge pull request #8634 from lptn/php82
Add dictionary delta for PHP 8.2
2022-10-31 19:43:34 +01:00
Alies Lapatsin
c57378b6fb
Merge branch '4.x' into php82 2022-10-31 22:28:01 +04:00
Alies Lapatsin
9516baced6 Update str_split signature to reflect PHP 8.2 changes 2022-10-31 21:27:46 +03:00
orklah
41e870baa9
Merge pull request #8639 from hamburnyog/fix-issue-8631
Fix for issue #8631
2022-10-31 17:33:12 +01:00
William Owen O. Ponce
77b3962b94 Fix typo 2022-10-31 23:09:07 +08:00
Alies Lapatsin
b450eac812 Add PHP 8.2 functions to the main delta 2022-10-31 13:00:11 +03:00
Alies Lapatsin
855eef9205 Increment PHP_MINOR_VERSION (to load delta for PHP 8.2) 2022-10-31 12:44:34 +03:00
Alies Lapatsin
ceb50e5cd5
Merge branch '4.x' into php82 2022-10-31 13:00:29 +04:00
Alies Lapatsin
61e95f948d Add removed section 2022-10-31 01:42:05 +03:00
Alies Lapatsin
6cf0657c6a Add dictionary delta for PHP 8.2 2022-10-31 00:43:40 +03:00
orklah
b739b67080
Merge pull request #8594 from kkmuffme/callable-invalidargument-required-param-mismatch-missing-error
ensure callbacks have the required number of params
2022-10-22 12:20:29 +02:00
kkmuffme
7d953dfb90 add tests 2022-10-22 08:53:40 +02:00
kkmuffme
edeff148b4 handle variadic 2022-10-22 08:28:56 +02:00
orklah
e8e8777561
Merge pull request #8592 from gphargreaves/#7810/improve-reflection-stubs
#7810/improve reflection stubs
2022-10-18 00:09:06 +02:00
orklah
48b8efde99
Merge pull request #8584 from boesing/feature/8521
Enhance type detection for internal php functions `key`, `current`, `end` and `reset`
2022-10-18 00:07:13 +02:00
orklah
4025ce7a30
Merge pull request #8600 from kkmuffme/fix-wrong-phpversion-id
fix wrong php version id in $_FILES
2022-10-17 23:58:25 +02:00
kkmuffme
41fbb14586 fix wrong php version id in $_FILES 2022-10-17 23:05:50 +02:00
Maximilian Bösing
eb6bbfb3b5
qa: remove redundant check as !empty already ensures that key does not return null
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2022-10-17 20:38:34 +02:00
Maximilian Bösing
7f35bff0d9
feature: enhance type detection for internal php functions key, current, end and reset
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2022-10-17 20:24:40 +02:00
kkmuffme
2c47d06968 fix tests 2022-10-17 16:25:43 +02:00
kkmuffme
25b01ce3a3 ensure callbacks have the required number of params
Fix https://github.com/vimeo/psalm/issues/8593
2022-10-17 16:03:55 +02:00
Greg Hargreaves
45bb58ebfa Add stub for reflection property isReadOnly 2022-10-17 00:46:19 +01:00
Greg Hargreaves
ea39a6e674 Fixes #7810 2022-10-17 00:33:26 +01:00
orklah
921801707d
Merge pull request #8583 from gphargreaves/#8484/fix-datetimeimmutable-sub
Correct return type of DateTimeImmutable sub method stub
2022-10-15 14:51:43 +02:00
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
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
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
Steven Dickinson
68f6ba873e Fix MinMaxReturnTypeProvider when handling TDependentListKeys 2022-10-11 14:13:40 +01: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