mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Add some stub related todo comments
This commit is contained in:
parent
8b70a7db4f
commit
84cd2a9047
@ -7,7 +7,7 @@ interface Throwable extends Stringable
|
||||
public function getMessage(): string;
|
||||
|
||||
/** @return int */
|
||||
public function getCode();
|
||||
public function getCode(); // TODO add proper type (i.e. int|string)
|
||||
|
||||
public function getFile(): string;
|
||||
|
||||
@ -32,7 +32,7 @@ class Exception implements Throwable
|
||||
* Intentionally left untyped for BC reasons
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 0;
|
||||
protected $code = 0; // TODO add proper type (i.e. int|string)
|
||||
protected string $file = "";
|
||||
protected int $line = 0;
|
||||
private array $trace = [];
|
||||
@ -48,7 +48,7 @@ class Exception implements Throwable
|
||||
final public function getMessage(): string {}
|
||||
|
||||
/** @return int */
|
||||
final public function getCode() {}
|
||||
final public function getCode() {} // TODO add proper type (i.e. int|string)
|
||||
|
||||
final public function getFile(): string {}
|
||||
|
||||
@ -91,7 +91,7 @@ class Error implements Throwable
|
||||
* Intentionally left untyped for BC reasons
|
||||
* @var int
|
||||
*/
|
||||
protected $code = 0;
|
||||
protected $code = 0; // TODO add proper type (i.e. int|string)
|
||||
protected string $file = "";
|
||||
protected int $line;
|
||||
private array $trace = [];
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 9d1c2027ebd14e621d9b5b79056ba7300a455be8 */
|
||||
* Stub hash: bee3fd13c5d5a6d09e217452998389d1b595157a */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -568,7 +568,7 @@ final class DOMException extends Exception
|
||||
* Intentionally left untyped for BC reasons
|
||||
* @var int
|
||||
*/
|
||||
public $code = 0;
|
||||
public $code = 0; // TODO add proper type (i.e. int|string)
|
||||
}
|
||||
|
||||
class DOMText extends DOMCharacterData
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 74698bea9c5e0635cf91345e8512b9677489510c */
|
||||
* Stub hash: 875805a57dada3ba8aceaa54508589d994855f31 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
|
||||
|
@ -5,7 +5,7 @@
|
||||
class PDOException extends RuntimeException
|
||||
{
|
||||
/** @var int|string */
|
||||
protected $code = 0;
|
||||
protected $code = 0; // TODO add proper type
|
||||
public ?array $errorInfo = null;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 8d975a20d009e827f8d72ac19b94b55870b6bf9c */
|
||||
* Stub hash: dc41dddeea1ae117c6f2f3447afb29bf6623b757 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pdo_drivers, 0, 0, IS_ARRAY, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
Loading…
Reference in New Issue
Block a user