add more type fixes + fix phpdoc syntax

This commit is contained in:
Lars Moelleken 2020-12-20 22:43:57 +01:00 committed by Ivan Fedorov
parent 2403feea02
commit 0829a62533
16 changed files with 30 additions and 36 deletions

View File

@ -3661,7 +3661,7 @@ class Aerospike {
public function setDeserializer ( callable $unserialize_cb ) {} public function setDeserializer ( callable $unserialize_cb ) {}
/** /*
* Options can be assigned values that modify default behavior * Options can be assigned values that modify default behavior
* Used by the constructor, read, write, scan, query, apply, and info * Used by the constructor, read, write, scan, query, apply, and info
* operations. * operations.

View File

@ -221,7 +221,6 @@ class DateTimeImmutable implements DateTimeInterface {
* @return static * @return static
* Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure. * Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
*/ */
public function modify($modifier) { } public function modify($modifier) { }
/** /**

View File

@ -2965,7 +2965,6 @@ function imagepalettetotruecolor ($image) {}
* @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass). * @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
* @return resource|GdImage|false Return scaled image resource on success or <b>FALSE</b> on failure. * @return resource|GdImage|false Return scaled image resource on success or <b>FALSE</b> on failure.
*/ */
function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {} function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
/** /**

View File

@ -510,7 +510,6 @@ function gmp_sign ($a) {}
* @see gmp_random_range() * @see gmp_random_range()
* @removed 8.0 * @removed 8.0
*/ */
#[Deprecated(reason: "Use see gmp_random_bits() or see gmp_random_range() instead", since: "7.2")] #[Deprecated(reason: "Use see gmp_random_bits() or see gmp_random_range() instead", since: "7.2")]
#[Pure] #[Pure]
function gmp_random ($limiter = 20) {} function gmp_random ($limiter = 20) {}

View File

@ -92,7 +92,7 @@ namespace Grpc
*/ */
const CALL_ERROR_PAYLOAD_TYPE_MISMATCH = 14; const CALL_ERROR_PAYLOAD_TYPE_MISMATCH = 14;
/** /*
* Register write flags * Register write flags
*/ */
@ -109,7 +109,7 @@ namespace Grpc
*/ */
const WRITE_NO_COMPRESS = 2; const WRITE_NO_COMPRESS = 2;
/** /*
* Register status constants * Register status constants
*/ */
@ -259,7 +259,7 @@ namespace Grpc
*/ */
const STATUS_DATA_LOSS = 15; const STATUS_DATA_LOSS = 15;
/** /*
* Register op type constants * Register op type constants
*/ */
@ -328,7 +328,7 @@ namespace Grpc
*/ */
const OP_RECV_CLOSE_ON_SERVER = 7; const OP_RECV_CLOSE_ON_SERVER = 7;
/** /*
* Register connectivity state constants * Register connectivity state constants
*/ */

View File

@ -1193,7 +1193,6 @@ function ldap_control_paged_result_response ($ldap, $result, &$cookie = null, &$
* @return string * @return string
* @since 5.6 * @since 5.6
*/ */
function ldap_escape (string $value, string $ignore = "", int $flags = 0): string function ldap_escape (string $value, string $ignore = "", int $flags = 0): string
{} {}

View File

@ -1438,7 +1438,6 @@ function mb_scrub (string $string, ?string $encoding): bool|string
* @param $position * @param $position
* @see mb_ereg_search_setpos * @see mb_ereg_search_setpos
*/ */
#[Deprecated(replacement: "mb_ereg_search_setpos(%parametersList%)", since: "7.3")] #[Deprecated(replacement: "mb_ereg_search_setpos(%parametersList%)", since: "7.3")]
#[Pure] #[Pure]
function mbereg_search_setpos ($position) {} function mbereg_search_setpos ($position) {}

View File

@ -92,6 +92,7 @@ final class Channel{
* @throws Channel\Error\Closed if channel is closed. * @throws Channel\Error\Closed if channel is closed.
*/ */
public function recv(){} public function recv(){}
/* Closing */ /* Closing */
/** /**

View File

@ -6,7 +6,7 @@
/** The maximum length of MPPE keys. */ /** The maximum length of MPPE keys. */
define('RADIUS_MPPE_KEY_LEN', 16); define('RADIUS_MPPE_KEY_LEN', 16);
/** /*
* RADIUS Options * RADIUS Options
* @link https://secure.php.net/manual/en/radius.constants.options.php * @link https://secure.php.net/manual/en/radius.constants.options.php
*/ */
@ -16,7 +16,7 @@ define('RAD_OPTION_TAG', 1);
/** When set, this option will result in the attribute value being tagged with the value of the tag parameter. */ /** When set, this option will result in the attribute value being tagged with the value of the tag parameter. */
define('RADIUS_OPTION_SALT', 2); define('RADIUS_OPTION_SALT', 2);
/** /*
* RADIUS Packet Types * RADIUS Packet Types
* @link https://secure.php.net/manual/en/radius.constants.packets.php * @link https://secure.php.net/manual/en/radius.constants.packets.php
*/ */
@ -75,7 +75,7 @@ define('RADIUS_COA_ACK', 44);
*/ */
define('RADIUS_COA_NAK', 45); define('RADIUS_COA_NAK', 45);
/** /*
* RADIUS Attribute Types * RADIUS Attribute Types
* @link https://secure.php.net/manual/en/radius.constants.attributes.php * @link https://secure.php.net/manual/en/radius.constants.attributes.php
*/ */

View File

@ -239,7 +239,6 @@ function sodium_crypto_kx_keypair (): string {}
* @throws SodiumException * @throws SodiumException
* @since 7.2 * @since 7.2
*/ */
function sodium_crypto_kx_publickey (string $key_pair): string {} function sodium_crypto_kx_publickey (string $key_pair): string {}
/** /**

View File

@ -1731,7 +1731,6 @@ function SQLSRV_SQLTYPE_VARBINARY($byteCount){}
* *
* @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the varchar data type. * @return int Value to use in any place that accepts a SQLSRV_SQLTYPE_* constant to represent the varchar data type.
*/ */
function SQLSRV_SQLTYPE_VARCHAR($charCount) {} function SQLSRV_SQLTYPE_VARCHAR($charCount) {}
/** /**

View File

@ -221,7 +221,6 @@ function unpack (string $format, string $string, int $offset = 0): array|false
function get_browser (?string $user_agent, bool $return_array): object|array|false function get_browser (?string $user_agent, bool $return_array): object|array|false
{} {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/** /**
* One-way string encryption (hashing) * One-way string encryption (hashing)
* @link https://php.net/manual/en/function.crypt.php * @link https://php.net/manual/en/function.crypt.php
@ -241,6 +240,7 @@ function get_browser (?string $user_agent, bool $return_array): object|array|fal
* @return string|null the encrypted string or <b>NULL</b> if an error occurs * @return string|null the encrypted string or <b>NULL</b> if an error occurs
*/ */
#[Pure] #[Pure]
#[PhpStormStubsElementAvailable(to: '7.4')]
function crypt ($string, $salt = null): ?string function crypt ($string, $salt = null): ?string
{} {}

View File

@ -114,7 +114,7 @@ class V8Js
public function clearPendingException() public function clearPendingException()
{} {}
/** Static methods **/ /* Static methods */
/** /**
* Registers persistent context independent global Javascript extension. * Registers persistent context independent global Javascript extension.

View File

@ -1,5 +1,5 @@
<?php <?php
/** /*
* Common Used Functions * Common Used Functions
*/ */
@ -65,7 +65,7 @@ function xcache_inc($name, $value = 1, $ttl = 0) {}
*/ */
function xcache_dec($name, $value = 1, $ttl = 0) {} function xcache_dec($name, $value = 1, $ttl = 0) {}
/** /*
* Administrator Functions * Administrator Functions
*/ */
@ -110,7 +110,7 @@ function xcache_clear_cache($type, $id = -1) {}
*/ */
function xcache_coredump($op_type) {} function xcache_coredump($op_type) {}
/** /*
* Coverager Functions * Coverager Functions
*/ */
@ -138,7 +138,7 @@ function xcache_coverager_stop($clean = false) {}
*/ */
function xcache_coverager_get($clean = false) {} function xcache_coverager_get($clean = false) {}
/** /*
* Opcode Functions * Opcode Functions
*/ */

View File

@ -365,7 +365,7 @@ namespace Vtiful\Kernel {
* @param int $row * @param int $row
* @param int $column * @param int $column
* *
* @return $this * @return static
*/ */
public function freezePanes(int $row, int $column): self public function freezePanes(int $row, int $column): self
{ {
@ -386,7 +386,7 @@ namespace Vtiful\Kernel {
* *
* @param int $option * @param int $option
* *
* @return $this * @return static
*/ */
public function gridline(int $option): self public function gridline(int $option): self
{ {
@ -400,7 +400,7 @@ namespace Vtiful\Kernel {
* *
* @param int $scale * @param int $scale
* *
* @return $this * @return static
*/ */
public function zoom(int $scale): self public function zoom(int $scale): self
{ {
@ -498,7 +498,7 @@ namespace Vtiful\Kernel {
/** /**
* Wrap * Wrap
* *
* @return $this * @return static
*/ */
public function wrap(): self public function wrap(): self
{ {
@ -508,7 +508,7 @@ namespace Vtiful\Kernel {
/** /**
* Bold * Bold
* *
* @return $this * @return static
*/ */
public function bold(): self public function bold(): self
{ {
@ -518,7 +518,7 @@ namespace Vtiful\Kernel {
/** /**
* Italic * Italic
* *
* @return $this * @return static
*/ */
public function italic(): self public function italic(): self
{ {
@ -530,7 +530,7 @@ namespace Vtiful\Kernel {
* *
* @param int $style const BORDER_*** * @param int $style const BORDER_***
* *
* @return $this * @return static
*/ */
public function border(int $style): self public function border(int $style): self
{ {
@ -542,7 +542,7 @@ namespace Vtiful\Kernel {
* *
* @param int ...$style const FORMAT_ALIGN_**** * @param int ...$style const FORMAT_ALIGN_****
* *
* @return $this * @return static
*/ */
public function align(...$style): self public function align(...$style): self
{ {
@ -556,7 +556,7 @@ namespace Vtiful\Kernel {
* *
* #,##0 * #,##0
* *
* @return $this * @return static
*/ */
public function number(string $format): self public function number(string $format): self
{ {
@ -568,7 +568,7 @@ namespace Vtiful\Kernel {
* *
* @param int $color const COLOR_**** * @param int $color const COLOR_****
* *
* @return $this * @return static
*/ */
public function fontColor(int $color): self public function fontColor(int $color): self
{ {
@ -580,7 +580,7 @@ namespace Vtiful\Kernel {
* *
* @param string $fontName * @param string $fontName
* *
* @return $this * @return static
*/ */
public function font(string $fontName): self public function font(string $fontName): self
{ {
@ -592,7 +592,7 @@ namespace Vtiful\Kernel {
* *
* @param float $size * @param float $size
* *
* @return $this * @return static
*/ */
public function fontSize(float $size): self public function fontSize(float $size): self
{ {
@ -614,7 +614,7 @@ namespace Vtiful\Kernel {
* *
* @param int $style const UNDERLINE_**** * @param int $style const UNDERLINE_****
* *
* @return $this * @return static
*/ */
public function underline(int $style): self public function underline(int $style): self
{ {
@ -627,7 +627,7 @@ namespace Vtiful\Kernel {
* @param int $color const COLOR_**** * @param int $color const COLOR_****
* @param int $pattern const PATTERN_**** * @param int $pattern const PATTERN_****
* *
* @return $this * @return static
*/ */
public function background(int $color, int $pattern = self::PATTERN_SOLID): self public function background(int $color, int $pattern = self::PATTERN_SOLID): self
{ {

View File

@ -98,7 +98,7 @@ class Yar_Client {
* - YAR_OPT_CONNECT_TIMEOUT * - YAR_OPT_CONNECT_TIMEOUT
* - YAR_OPT_HEADER (Since 2.0.4) * - YAR_OPT_HEADER (Since 2.0.4)
* @param $value * @param $value
* @return $this|false Returns $this on success or FALSE on failure. * @return static|false Returns $this on success or FALSE on failure.
* @link https://secure.php.net/manual/en/yar-client.setopt.php * @link https://secure.php.net/manual/en/yar-client.setopt.php
*/ */
public function setOpt ($name , $value ){} public function setOpt ($name , $value ){}