1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00
Commit Graph

12043 Commits

Author SHA1 Message Date
orklah
8fc499e341
Merge pull request #8649 from lptn/ext-random-for-v5
Add stubs for ext-random (PHP 8.2)
2022-11-02 18:44:43 +01:00
Alies Lapatsin
d9a08ec047 Add stubs for ext-random (PHP 8.2) 2022-11-02 15:59:56 +03: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
7c83878ae0
Merge pull request #8619 from kkmuffme/keep-literal-string-for-simple-str_replace
keep literal string for simple str_replace
2022-10-27 10:24:16 +02:00
kkmuffme
e064a0c14d fix unrelated CI error 2022-10-27 09:23:25 +02:00
kkmuffme
de52e42d5f keep literal string for simple str_replace 2022-10-27 09:23:25 +02:00
orklah
25b3937168
Merge pull request #8622 from webmaster777/patch-1
Update PossiblyFalseReference.md
2022-10-26 22:06:48 +02:00
orklah
26c2539827
Merge pull request #8620 from kkmuffme/basename-return-type-provider
add basename return type provider
2022-10-26 22:01:32 +02:00
webmaster777
c6c6d083e1
Update PossiblyFalseReference.md
Typo than -> that
2022-10-26 19:52:31 +02:00
kkmuffme
87eb83616e add basename return type provider
Like dirname return type provider of https://github.com/vimeo/psalm/pull/8611
2022-10-26 13:03:53 +02:00
orklah
4b96c20934
Merge pull request #8614 from LeSuisse/stub-ext-ffi
Add stubs for ext-ffi
2022-10-26 00:19:49 +02:00
Thomas Gerbet
62e92fb0cf Add stubs for ext-ffi
See #8612
2022-10-25 19:59:44 +02:00
orklah
aea40efb22
Merge pull request #8611 from mcaskill/feature/5.x/dirname-return-type-provider
Add dirname return type provider
2022-10-23 20:21:01 +02:00
Chauncey McAskill
0afd873787
Fix dirname return type provider
Changed:
- Replaced extraction of `$dir_level` literal value to be from the NodeTypeProvider instead of from the statement; based on similar logic in `RoundReturnTypeProvider`.
- Replaced `new` return type creation with `Type` method creation.
- Replaced `null` return with string type.

Fixed:
- Typo on variable name for extracted `StatementsSource`.
- Edge case where `$dir_level` is less than 1.
- Broken unit tests.
2022-10-23 12:11:58 -04:00
Chauncey McAskill
1dfadfa9ec
Add dirname return type provider 2022-10-23 11:56:02 -04: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
b0970a6994
Merge pull request #8586 from Nicelocal/fix_8560
Fix #8560
2022-10-19 22:06:00 +02:00
orklah
0b80db5cfc
Merge pull request #8605 from zenahirsch/patch-1
Fix typo
2022-10-19 22:02:58 +02:00
Zena Hirsch
459fdcd588
Fix typo: "unitialized" 2022-10-19 14:36:43 -04:00
orklah
347a1c21d4
Merge pull request #8601 from pchapl/fix-docs-syntax
Docs: Fix minor php syntax issues in code examples
2022-10-19 20:11:42 +02:00
34a0f2b0c7
Merge branch 'master' into fix_8560 2022-10-19 19:44:04 +02:00
orklah
e52b712bf0
Merge pull request #8525 from Nicelocal/immutable_readonly_3
Immutable readonly atomics
2022-10-19 18:57:31 +02:00
Pavel Chaplygin
48da8342ad Docs: Fix minor php syntax issues in code examples 2022-10-18 14:57:50 +03: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
03f234456d Fix 2022-10-17 20:31:11 +02:00
c9ff8c2c67 Prevent re-resolution of static 2022-10-17 20:31:11 +02:00
abb0e2e3f9 Fix #8560 2022-10-17 20:31:11 +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
orklah
212281dbcd
Merge pull request #8591 from Nicelocal/merge_4.x
Merge 4.x
2022-10-17 20:16:37 +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