1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01: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
..
2021-12-14 10:19:08 +01:00
2021-12-29 16:56:09 +01:00
2022-01-03 17:11:03 +01:00
2022-07-25 17:15:28 +03:00
2022-02-23 00:52:53 +02:00
2021-10-09 23:37:04 +02:00
2022-03-04 12:56:30 +01:00