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
afe85fad86
Merge pull request #8418 from Nicelocal/fix_8414
...
fix: Fix template resolution of complex extended types
2022-08-17 20:38:02 +02:00
979091d2ab
Optimize
2022-08-17 13:38:11 +02:00
0220da0b32
Add tests
2022-08-17 13:30:36 +02:00
95ef63ece9
Update
2022-08-17 13:25:00 +02:00
24b008ee40
Fix
2022-08-17 13:19:25 +02:00
1401bf94db
Fix #8414
2022-08-17 13:11:27 +02:00
orklah
42462b8640
Merge pull request #8408 from ThomasLandauer/patch-1
...
Adding note about referencedMethod
2022-08-13 16:33:18 +02:00
Thomas Landauer
f87becfb3b
Adding note about referencedMethod
...
Info is taken from https://github.com/vimeo/psalm/issues/2297#issuecomment-549480186
2022-08-13 16:14:51 +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
f315647338
Merge pull request #8402 from gmessier/master
...
Add capability to use inclusion files in a different directory (fix)
2022-08-11 21:20:03 +02:00
Guillaume Messier
ca3d0990be
Add capability to use inclusion files in a different directory for plugins and issueHandlers
2022-08-11 14:36:04 -04: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
orklah
28f22c7b57
Merge pull request #8400 from staabm/truthy
...
added truthy-string alias for non-falsy-string
2022-08-11 17:35:58 +02:00
Markus Staab
8f6e16add6
added truthy-string alias for non-falsy-string
2022-08-11 16:49:58 +02:00
kkmuffme
8ca594a34d
always use lock when writing/reading cache data to/from file
2022-08-11 13:12:47 +02:00
AndrolGenhald
aae539560b
Merge pull request #8376 from Daeroni/fix-8373
...
Use classlike_storage_provider only if it has the required data
2022-08-08 16:01:49 -05:00
Teemu Koskinen
89b7b3234b
Add test for #8373
...
Undefined classes in function dockblocks should not crash psalm.
Test provided by @AndrolGenhald
2022-08-08 23:49:14 +03:00
Teemu Koskinen
fefd4861d6
Use $codebase->classlike_storage_provider only if it has the required data. Fixes #8373
2022-08-08 23:49:14 +03:00
orklah
57fcc3968e
Merge pull request #8350 from Ocramius/fix/datetime-constructor-is-not-immutable
...
Added better stubs for `DateTimeImmutable`, highlighting how the constructor is **NOT** immutable
2022-08-07 22:57:43 +02:00
Marco Pivetta
13828771c7
Removed DateTimeImmutable::createFromInterface()
from stubs
...
While there is value in declaring `DateTimeImmutable::createFromInterface()` as mutation-free in
a stub, this method was introduced in PHP 8.0, so we cannot really declare it in a stub.
For now, we drop it, as the value of its stub declaration is much lower than the problems it
introduces through its conditional existence.
2022-08-05 13:28:53 +02:00
Marco Pivetta
68ffae097e
Simplified DateTimeImmutable::format()
: always returns a string
...
Also:
* a non-empty format string will always lead to `non-empty-string`
* it seems that you can throw **everything** at `DateTimeInterface#format()`, even null bytes,
and it will always produce a `string`
2022-08-05 13:21:28 +02:00