Skip to content

Commit

Permalink
encoding functions returns non-empty-string
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Sep 1, 2022
1 parent 924d5c4 commit ca616c3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions stubs/core.stub
Expand Up @@ -47,3 +47,23 @@ function highlight_string($var, bool $return = false) {}
* @return ($return is true ? string : true)
*/
function print_r($var, bool $return = false) {}

/**
* @return ($string is non-empty-string ? non-empty-string : string)
*/
function sodium_bin2base64(string $string, int $id): string {}

/**
* @return ($string is non-empty-string ? non-empty-string : string)
*/
function sodium_bin2hex(string $string): string {}

/**
* @return ($string is non-empty-string ? non-empty-string : string)
*/
function base64_encode(string $string) : string {}

/**
* @return ($string is non-empty-string ? non-empty-string : string)
*/
function bin2hex(string $string): string {}

0 comments on commit ca616c3

Please sign in to comment.