use LanguageLevelTypeAware for typehints
This commit is contained in:
parent
918fab0d94
commit
b5ae4f791a
|
@ -337,7 +337,7 @@ final class Ev
|
|||
*
|
||||
* @param float $seconds Fractional number of seconds
|
||||
*/
|
||||
final public static function sleep($seconds) {}
|
||||
final public static function sleep(float $seconds) {}
|
||||
|
||||
/**
|
||||
* Stops the default event loop
|
||||
|
|
|
@ -204,7 +204,9 @@ class mysqli
|
|||
* @return bool true on success or false on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
public function begin_transaction(int $flags = 0, ?string $name = null) {}
|
||||
public function begin_transaction(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] $flags = 0,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')] $name = null) {}
|
||||
|
||||
/**
|
||||
* Changes the user of the specified database connection
|
||||
|
@ -680,7 +682,7 @@ class mysqli
|
|||
* @return bool Returns TRUE on success or FALSE on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
public function release_savepoint(string $name) {}
|
||||
public function release_savepoint(#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $name) {}
|
||||
|
||||
/**
|
||||
* Rolls back current transaction
|
||||
|
@ -690,7 +692,10 @@ class mysqli
|
|||
* @return bool true on success or false on failure.
|
||||
* @since 5.5 Added flags and name parameters.
|
||||
*/
|
||||
public function rollback(int $flags = 0, ?string $name = null) {}
|
||||
public function rollback(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] $flags = 0,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')] $name = null
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Set a named transaction savepoint
|
||||
|
@ -699,7 +704,7 @@ class mysqli
|
|||
* @return bool Returns TRUE on success or FALSE on failure.
|
||||
* @since 5.5
|
||||
*/
|
||||
public function savepoint(string $name) {}
|
||||
public function savepoint(#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $name) {}
|
||||
|
||||
/**
|
||||
* Selects the default database for database queries
|
||||
|
@ -806,7 +811,7 @@ class mysqli
|
|||
* @return bool TRUE if the refresh was a success, otherwise FALSE
|
||||
* @since 5.3
|
||||
*/
|
||||
public function refresh(int $flags) {}
|
||||
public function refresh(#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] $flags) {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -272,7 +272,8 @@ class SoapClient
|
|||
* @since 5.0.1
|
||||
*/
|
||||
#[Deprecated]
|
||||
public function __call(string $name, array $args) {}
|
||||
public function __call(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $name, array $args) {}
|
||||
|
||||
/**
|
||||
* Calls a SOAP function
|
||||
|
@ -315,7 +316,8 @@ class SoapClient
|
|||
* option set to <b>FALSE</b>, a SoapFault object will be returned.
|
||||
* @since 5.0.1
|
||||
*/
|
||||
public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null) {}
|
||||
public function __soapCall(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null) {}
|
||||
|
||||
/**
|
||||
* Returns last SOAP request
|
||||
|
@ -396,7 +398,12 @@ class SoapClient
|
|||
* @return string|null The XML SOAP response.
|
||||
* @since 5.0.1
|
||||
*/
|
||||
public function __doRequest(string $request, string $location, string $action, int $version, #[LanguageLevelTypeAware(["8.0" => 'bool'], default: 'int')] $oneWay = false) {}
|
||||
public function __doRequest(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $request,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $location,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $action,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] $version,
|
||||
#[LanguageLevelTypeAware(["8.0" => 'bool'], default: 'int')] $oneWay = false) {}
|
||||
|
||||
/**
|
||||
* The __setCookie purpose
|
||||
|
@ -410,7 +417,10 @@ class SoapClient
|
|||
* @return void No value is returned.
|
||||
* @since 5.0.4
|
||||
*/
|
||||
public function __setCookie(string $name, #[LanguageLevelTypeAware(["8.0" => "string|null"], default: "string")] $value) {}
|
||||
public function __setCookie(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $name,
|
||||
#[LanguageLevelTypeAware(["8.0" => "string|null"], default: "string")] $value
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Sets the location of the Web service to use
|
||||
|
@ -606,7 +616,7 @@ class SoapServer
|
|||
* @return void No value is returned.
|
||||
* @since 5.1.2
|
||||
*/
|
||||
public function setPersistence(int $mode) {}
|
||||
public function setPersistence(#[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] $mode) {}
|
||||
|
||||
/**
|
||||
* Sets the class which handles SOAP requests
|
||||
|
@ -618,7 +628,9 @@ class SoapServer
|
|||
* @return void No value is returned.
|
||||
* @since 5.0.1
|
||||
*/
|
||||
public function setClass(string $class, mixed ...$args) {}
|
||||
public function setClass(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $class,
|
||||
mixed ...$args) {}
|
||||
|
||||
/**
|
||||
* Sets the object which will be used to handle SOAP requests
|
||||
|
@ -695,7 +707,13 @@ class SoapServer
|
|||
* @return void No value is returned.
|
||||
* @since 5.0.1
|
||||
*/
|
||||
public function fault(string $code, string $string, string $actor = null, mixed $details = null, string $name = null) {}
|
||||
public function fault(
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $code,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $string,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $actor = null,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'mixed'], default: '')] $details = null,
|
||||
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] $name = null
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Add a SOAP header to the response
|
||||
|
|
|
@ -2886,7 +2886,7 @@ final class Yaf_Route_Regex extends Yaf_Router implements Yaf_Route_Interface
|
|||
* @param array $query
|
||||
* @return bool
|
||||
*/
|
||||
public function assemble(array $info, array $query = null) {}
|
||||
public function assemble(array $info, ?array $query = null) {}
|
||||
|
||||
public function match($uri) {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue