update typehints for intl

This commit is contained in:
Ivan Fedorov 2021-07-05 11:38:43 +03:00 committed by Ivan Fedorov
parent b7ce36242d
commit a2393acc21
5 changed files with 325 additions and 145 deletions

View File

@ -666,7 +666,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $separator = ',',
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $enclosure = '"',
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $escape = "\\",
#[PhpStormStubsElementAvailable('8.1')] $eol = PHP_EOL
#[PhpStormStubsElementAvailable('8.1')] string $eol = PHP_EOL
) {}
/**

View File

@ -2140,7 +2140,7 @@ function imagexbm(GdImage $image, ?string $filename, ?int $foreground_color = nu
* Applies a filter to an image
* @link https://php.net/manual/en/function.imagefilter.php
* @param resource|GdImage $image
* @param int $filter [optional] <p>
* @param int $filter <p>
* filtertype can be one of the following:
* IMG_FILTER_NEGATE: Reverses all colors of
* the image.</p>

View File

@ -118,7 +118,7 @@ function imap_headers(#[LanguageLevelTypeAware(['8.1' => 'IMAP\Connection'], def
/**
* Read the header of the message
* @link https://php.net/manual/en/function.imap-headerinfo.php
* @param resource $imap An IMAP stream returned by imap_open().
* @param resource|IMAP\Connection $imap An IMAP stream returned by imap_open().
* @param int $message_num The message number
* @param int $from_length [optional] Number of characters for the fetchfrom property. Must be greater than or equal to zero.
* @param int $subject_length [optional] Number of characters for the fetchsubject property Must be greater than or equal to zero.
@ -163,7 +163,7 @@ function imap_headers(#[LanguageLevelTypeAware(['8.1' => 'IMAP\Connection'], def
* <dt>fetchsubject</dt><dd>subject line formatted to fit subjectlength characters</dd>
* </dl>
*/
function imap_headerinfo($imap, int $message_num, int $from_length = 0, int $subject_length = 0, #[PhpStormStubsElementAvailable(to: '7.4')] $default_host = null): stdClass|false {}
function imap_headerinfo(IMAP\Connection $imap, int $message_num, int $from_length = 0, int $subject_length = 0, #[PhpStormStubsElementAvailable(to: '7.4')] $default_host = null): stdClass|false {}
/**
* Parse mail headers from a string

File diff suppressed because it is too large Load Diff

View File

@ -706,7 +706,7 @@ class ZipArchive implements Countable
* @return int
* @since 7.2
*/
public function count(): int {}
public function count() {}
/**
* Returns the status error message, system and/or zip messages
@ -951,7 +951,7 @@ class ZipArchive implements Countable
* @return bool Returns TRUE on success or FALSE on failure.
* @since 7.2
*/
public function setEncryptionIndex(int $index, int $method, ?string $password = null): bool {}
public function setEncryptionIndex(int $index, int $method, ?string $password = null) {}
/**
* Set the encryption method of an entry defined by its name
@ -962,7 +962,7 @@ class ZipArchive implements Countable
* @return bool Returns TRUE on success or FALSE on failure.
* @since 7.2
*/
public function setEncryptionName(string $name, int $method, ?string $password = null): bool {}
public function setEncryptionName(string $name, int $method, ?string $password = null) {}
/**
* (PHP 5 &gt;= 5.6.0, PECL zip &gt;= 1.12.0)<br/>