1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 10:07:52 +01:00
Commit Graph

12237 Commits

Author SHA1 Message Date
Nicolas Giraud
208b745ec4 Remove IntlDateFormatter::setTimeZoneId from CallMap_historical as this method is removed since PHP 7.0.0. 2022-11-23 13:47:37 +01:00
Nicolas Giraud
9f4ba8d834 #8735: Add missing updates of CallMap_historical regarding new changes of IntlDateFormatter. 2022-11-23 13:42:50 +01:00
Nicolas Giraud
18bd412dd5 Fix #8735: IntlDateFormatter CallMaps. 2022-11-23 13:33:02 +01:00
orklah
e83ac65e79
Merge pull request #8729 from lptn/fix-dictionary-for-strip_tags-function
Fix dictionary for strip_tags
2022-11-23 13:28:48 +01:00
orklah
16ba29836b
Merge pull request #8736 from weirdan/simplify-issue-sorting
Simplify issue sorting
2022-11-23 06:58:52 +01:00
orklah
3b6faf9638
Merge pull request #8737 from weirdan/enforce-arrow-function-formatting
Enforce arrow function formatting
2022-11-23 06:58:34 +01:00
54db59682d
Allow parameter types to be contained by a class template type (#8731)
* Allow parameter types to be contained by a class template type in function calls

* Specify PHP version of tests

* Fix tests
2022-11-23 00:14:30 -05:00
Bruce Weirdan
026354a18e
Enforce arrow function formatting 2022-11-23 00:08:29 -04:00
Bruce Weirdan
8e941c1439
CS fix 2022-11-22 23:59:33 -04:00
Bruce Weirdan
45b49df92e Simplify issue sorting
As we're on 7.4 now, we can use more concise constructs
2022-11-22 23:18:50 -04:00
Alies Lapatsin
7678b34945 Update CallMap to reflect the most up-to-date signature 2022-11-22 23:51:50 +01:00
orklah
f846906b29
Merge pull request #8730 from kamil-tekiela/curl_unescape
Argument 1 of curl_unescape
2022-11-22 19:07:39 +01:00
1a9edc3179 Fix cs 2022-11-22 17:29:53 +01:00
d580181171 Finalize 2022-11-22 17:22:26 +01:00
9a5337d6b5 Switch to Type::getListAtomic 2022-11-22 17:01:19 +01:00
Alies Lapatsin
d33c338072 strip_tags: allow nullable allowed_tags arguments from PHP80 2022-11-22 12:27:50 +01:00
Kamil Tekiela
810ef8b771
Argument 1 of curl_unescape 2022-11-21 22:59:22 +00:00
Alies Lapatsin
8dd76ded86 Fix dictionary for strip_tags
- allow null
 - allow array from PHP 7.4 (see https://www.php.net/manual/en/function.strip-tags.php)

https://3v4l.org/VjbXO
https://3v4l.org/VWsPr
2022-11-21 23:33:25 +01:00
61a595ba85 Cleanup 2022-11-21 20:56:48 +01:00
0345254635 Reuse code 2022-11-21 20:52:58 +01:00
bd9b77daee Cleanup 2022-11-21 20:51:04 +01:00
5bf226d6a6 Cleanup 2022-11-21 20:29:57 +01:00
0a3971a54e Deprecate TCallableList as well 2022-11-21 19:39:57 +01:00
80eab1b062 Update 2022-11-21 19:37:06 +01:00
03c53d7c97 Deprecate TList and TNonEmptyList 2022-11-21 19:26:09 +01:00
7683a48de3 Revert 2022-11-21 19:18:14 +01:00
5797945f97 Skip test 2022-11-21 18:22:57 +01:00
b63287150f Remove getGenericArrayType parameter right away, and do not return a non-empty-array if there are no defined keys 2022-11-21 18:13:17 +01:00
f7527d464a Fix 2022-11-21 17:54:00 +01:00
98bfe9f1b4 Add note for 5.1 BC break 2022-11-21 17:53:08 +01:00
3f5f98b9d3 Refactoring 2022-11-21 17:46:20 +01:00
cc4461f756 Progress 2022-11-20 19:01:49 +01:00
5b3358937f Fix array_merge argument unpacking 2022-11-20 17:36:23 +01:00
Bruce Weirdan
7869cb548a
Merge pull request #8724 from kkmuffme/include-cli-args-in-php-errors 2022-11-20 06:28:22 -04:00
kkmuffme
ce84a80c6d include CLI args in PHP errors to more quickly identify run issues in CI 2022-11-20 11:15:45 +01:00
Bruce Weirdan
6d03c3209e
Merge pull request #8723 from weirdan/allow-new-on-objects
Fixes https://github.com/vimeo/psalm/issues/8355
2022-11-19 17:37:46 -04:00
Bruce Weirdan
6554aa05a7
Emit MixedMethodCall when calling new on object 2022-11-19 17:29:35 -04:00
Bruce Weirdan
d7561919b2
Allow new on objects
Fixes vimeo/psalm#8355
2022-11-19 16:53:07 -04:00
orklah
4e17585093
Merge pull request #8714 from kkmuffme/dont-rewrite-config-hash-to-cache-when-unchanged
Fix cache race condition due to missing repopulation of lock files cache
2022-11-18 22:08:37 +01:00
orklah
4a83f88881
Merge pull request #8707 from kkmuffme/improve-cache-flush-debug-info
improve cache flush debug info and code if cache disabled
2022-11-18 22:07:13 +01:00
orklah
48c0df6a8c
Merge pull request #8708 from annervisser/allow-using-imported-type-in-other-type
Allow using imported types in other types within the same file
2022-11-18 22:06:17 +01:00
orklah
ebc7599697
Merge pull request #8713 from weirdan/fix-8712
Reject `@psalm-consistent-constructor` in function docblocks
2022-11-18 22:05:22 +01:00
orklah
9d4c718757
Merge pull request #8717 from franmomu/fix_listAbbreviations
Fix DateTimeZone::listAbbreviations return type
2022-11-18 18:24:55 +01:00
Fran Moreno
c3bd060f06
Fix DateTimeZone::listAbbreviations return type
Also fixes DateTimeZone::getOffset return type
2022-11-18 08:50:00 +01:00
kkmuffme
ff49dfca1d Fix lock files not updated when cache is cleared race condition 2022-11-17 09:31:02 +01:00
kkmuffme
3068d38c3c only write config to cache when config hash changed 2022-11-17 09:20:16 +01:00
Bruce Weirdan
8e1f129701
Reject @psalm-consistent-constructor in function docblocks
Fixes vimeo/psalm#8712
2022-11-16 19:14:13 -04:00
orklah
12f33faece
Merge pull request #8709 from kkmuffme/add-psalter-no-progress-flag
add --no-progress to psalter
2022-11-15 20:20:17 +01:00
orklah
22fe7f4302
Merge pull request #8710 from kkmuffme/safe-delete-cache-directory
safe delete cache directory files
2022-11-15 20:18:59 +01:00
kkmuffme
4b20fd3e62 safe delete cache directory files
since we safeFileGetContents, it makes sense to also acquire lock before deleting, to avoid reading partial data
2022-11-15 19:54:43 +01:00