Skip to content

Commit

Permalink
[phpstorm-stub] WI-73041 Fixed return type in PHPDoc for substr().
Browse files Browse the repository at this point in the history
  • Loading branch information
LolGleb committed Aug 25, 2023
1 parent a92e83f commit 256374c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions standard/standard_1.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ function strcoll(string $string1, string $string2): int {}
function money_format(string $format, float $number): ?string {}

/**
* Return part of a string
* Return part of a string or false on failure. For PHP8.0+ only string is returned
* @link https://php.net/manual/en/function.substr.php
* @param string $string <p>
* The input string.
Expand Down Expand Up @@ -559,7 +559,6 @@ function money_format(string $format, float $number): ?string {}
* $rest = substr("abcdef", -3, -1); // returns "de"
* ?>
* </pre>
* @return string|false the extracted part of string or false on failure.
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
Expand Down

0 comments on commit 256374c

Please sign in to comment.