safe icon indicating copy to clipboard operation
safe copied to clipboard

getopt() return type annotation does not exist

Open jack-worman opened this issue 2 years ago • 0 comments

The code is:

/**
 * @return \__benevolent This function will return an array of option / argument pairs.
 */
function getopt(string $short_options, array $long_options = [], ?int &$rest_index = null): array

\__benevolent is wrong and causes static analyzers to error out.

jack-worman avatar Sep 27 '23 12:09 jack-worman