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

11041 Commits

Author SHA1 Message Date
kkmuffme
4726454f49 update leftover md5 in provider to commonly used hash
Revert "update leftover md5 in provider to commonly used hash"

This reverts commit 66337ecf50446dca8650a0812ebfe516d1993e06.

partially put back

Update StatementsProvider.php
2022-09-11 10:22:48 +02:00
kkmuffme
8da5f5eb1a use exceptions instead of error_log for ParserCacheProvider
* use exceptions instead of error_log for ParserCacheProvider like all other cache providers do
* remove duplicate code in ParserCacheProvider
* use same hash as other cache providers
* update Config.php cache directory creation to use same code as ParserCacheProvider
2022-09-11 10:22:48 +02:00
orklah
5108834088
Merge pull request #8136 from sergkash7/patch-1
Update phpredis.phpstub
2022-09-09 07:47:53 +02:00
orklah
5cf6fb3574
Merge pull request #8468 from kkmuffme/class-alias-should-not-be-case-insensitive
classlike_alias incorrect casing not handled correctly
2022-09-08 23:03:17 +02:00
orklah
eba63a3821
Merge pull request #8367 from kkmuffme/revert-nullable-curl_multi_getcontent
partial revert nullable type for curl_multi_getcontent
2022-09-08 22:58:29 +02:00
kkmuffme
6e4c1823d6 partial revert nullable type for curl_multi_getcontent
Fix https://github.com/vimeo/psalm/issues/8351

Partially reverts f28ac73777
2022-09-08 21:46:15 +02:00
kkmuffme
4c6abccfb2 fix tests 2022-09-08 21:33:06 +02:00
kkmuffme
c450d95727 fix inconsistent function naming 2022-09-08 21:33:06 +02:00
kkmuffme
249d61ec1b classlike_alias incorrect casing not handled correctly 2022-09-08 21:33:06 +02:00
orklah
f84e7af826
Merge pull request #8432 from alcaeus/mongodb-stub-corrections
Update call maps for MongoDB extension
2022-09-08 20:30:22 +02:00
orklah
76cfb911b2
Merge pull request #8469 from kkmuffme/strictify-anchored-preg-replace
preg_replace with anchor will always only have 1 replacement
2022-09-08 20:01:16 +02:00
orklah
6374a9637e
Merge pull request #8465 from kkmuffme/invalid-class-casing-for-native-and-stubbed-classes
report invalidCasing when using a class that is not user defined too
2022-09-08 19:59:00 +02:00
kkmuffme
d0984f4e47 fix psalm internal errors reported by new checks 2022-09-08 19:35:44 +02:00
kkmuffme
15046c932b preg_replace with anchor will always only have 1 replacement, add limit for clarity and performance 2022-09-08 18:51:33 +02:00
kkmuffme
1a10654cb3 fix tests 2022-09-08 13:28:43 +02:00
kkmuffme
a17fa249ac report invalidCasing when using a class that is not user defined too (e.g. new DateTime) 2022-09-08 13:28:43 +02:00
AndrolGenhald
18f285f698
Merge pull request #8466 from fluffycondor/ctype-digit-asserts-not-all-numeric-strings
Fix ctype_digit assertion bug
2022-09-07 10:51:18 -05:00
Semyon
f0a8810cf5 Fix ctype_digit assertion bug 2022-09-07 15:49:35 +03:00
orklah
cfe7fd1a53
Merge pull request #8450 from fluffycondor/ctype-functions-assertions
Make ctype_digit and ctype_lower work as assertions
2022-09-05 18:42:55 +02:00
orklah
82be35930f
Merge pull request #8451 from sashashura/patch-1
GitHub Workflows security hardening
2022-09-05 18:40:00 +02:00
Alex
a6710791e4
Update build-phar.yml
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2022-09-02 19:16:42 +01:00
Semyon
969c7a098b Make ctype_digit and ctype_lower work as assertions 2022-09-02 17:37:10 +03:00
AndrolGenhald
faf106e717
Merge pull request #8444 from SCIF/bugfix-8439
trim(), ltrim(), rtrim() now keep lowercase string attribute
2022-08-31 08:47:09 -05:00
Aleksandr Zhuravlev
d7097281ba trim(), ltrim(), rtrim() now keep lowercase string attribute 2022-08-31 21:02:20 +12:00
orklah
1eeea7c21d
Merge pull request #8428 from den-kuz/4.x
Allow any attribute for complex types in schema
2022-08-28 14:04:10 +02:00
Andreas Braun
48bf5496d8
Add missing parameter type for Serializable::unserialize 2022-08-26 10:03:08 +02:00
Andreas Braun
5b8f611e73
Handle tentative return types for interfaces correctly 2022-08-25 15:27:04 +02:00
Andreas Braun
6a6922d29e
Update call maps for MongoDB extension 2022-08-25 14:35:54 +02:00
AndrolGenhald
2fdcd5a5fc
Merge pull request #8436 from TimWolla/attribute-target
Configure a correct attribute target in stubs/CoreGenericClasses.phpstub
2022-08-24 16:59:40 -05:00
Tim Düsterhus
3c2018a1e0 Configure a correct attribute target in stubs/CoreGenericClasses.phpstub 2022-08-24 21:32:26 +02:00
AndrolGenhald
88d33828d8
Merge pull request #8435 from VincentLanglet/arrayReduce
Add support for callable in array_reduce
2022-08-24 09:44:08 -05:00
Vincent Langlet
6bc714c867 Add support for callable in array_reduce 2022-08-24 16:04:22 +02:00
AndrolGenhald
034a796f84
Merge pull request #8431 from LeSuisse/bin2hex-base64-stub
Allow *bin2hex and *bin2base64 functions to keep non-empty-string type
2022-08-23 09:47:18 -05:00
Thomas Gerbet
4b1adaafec Allow *bin2hex and *bin2base64 functions to keep non-empty-string type
Those functions should not return a string when they receive a
non-empty-string in input.

The following example is expected to work:
```php
<?php

/**
 * @param non-empty-string $i
 */
function takesNonEmptyString(string $i): void {
    echo $i;
}

takesNonEmptyString(bin2hex("a"));
takesNonEmptyString(base64_encode("a"));
```
2022-08-23 16:38:17 +02:00
Denis Kuznetsov
93a293c673 Allow any attribute for complex types in schema 2022-08-23 04:19:02 +03:00
orklah
0b790e0982
Merge pull request #8427 from staabm/attr
added SensitiveParameter, AllowDynamicProperties php 8.2 attributes
2022-08-22 19:15:07 +02:00
Markus Staab
72a1c05717
Restore CliUtils.php 2022-08-22 16:59:27 +02:00
Markus Staab
198347fac7 fix test 2022-08-22 16:58:23 +02:00
Markus Staab
8407cacc02 improve CI error message 2022-08-22 16:55:32 +02:00
Markus Staab
a3d58cf2fd imports 2022-08-22 16:55:26 +02:00
Markus Staab
63915d1e2c added SensitiveParameter, AllowDynamicProperties php 8.2 attributes 2022-08-22 16:44:55 +02:00
orklah
91705722ff
Merge pull request #8424 from krsriq/fix_typo
Fix doc typos
2022-08-21 00:13:55 +02:00
Daniel Schmelz
9c67b85f39
Fix typos 2022-08-20 23:29:03 +02:00
orklah
7ee3a81bce
Merge pull request #8370 from someniatko/issue-8363
Ensure we recognize inherited static methods for the first-class callables
2022-08-18 21:50:20 +02:00
orklah
0d0a049eb2
Merge pull request #8405 from vjik/get-modifiers-name
Clarification of `Reflection::getModifierNames()` result type
2022-08-12 18:53:47 +02:00
orklah
24b8b8e6ce
Merge pull request #8403 from paulfedorow/imageinterlace-callmap-fix-4.x
Fix `imageinterlace` function signature
2022-08-12 18:29:19 +02:00
Sergei Predvoditelev
4498a523b9
fix 2022-08-12 16:12:36 +03:00
Sergei Predvoditelev
ffe4375a60
Clarification of Reflection::getModifierNames() result type 2022-08-12 16:03:56 +03:00
Paul Fedorow
8908638219 Fix imageinterlace function signature 2022-08-12 11:22:45 +02:00
orklah
7e010a7a4f
Merge pull request #8372 from kkmuffme/safely-read-write-cache-data
always use lock when writing/reading cache data to/from file
2022-08-11 18:06:56 +02:00