Add some stub related todo comments

This commit is contained in:
Máté Kocsis 2022-05-25 13:22:55 +02:00
parent 8b70a7db4f
commit 84cd2a9047
No known key found for this signature in database
GPG key ID: FD055E41728BF310
6 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@ interface Throwable extends Stringable
public function getMessage(): string; public function getMessage(): string;
/** @return int */ /** @return int */
public function getCode(); public function getCode(); // TODO add proper type (i.e. int|string)
public function getFile(): string; public function getFile(): string;
@ -32,7 +32,7 @@ class Exception implements Throwable
* Intentionally left untyped for BC reasons * Intentionally left untyped for BC reasons
* @var int * @var int
*/ */
protected $code = 0; protected $code = 0; // TODO add proper type (i.e. int|string)
protected string $file = ""; protected string $file = "";
protected int $line = 0; protected int $line = 0;
private array $trace = []; private array $trace = [];
@ -48,7 +48,7 @@ class Exception implements Throwable
final public function getMessage(): string {} final public function getMessage(): string {}
/** @return int */ /** @return int */
final public function getCode() {} final public function getCode() {} // TODO add proper type (i.e. int|string)
final public function getFile(): string {} final public function getFile(): string {}
@ -91,7 +91,7 @@ class Error implements Throwable
* Intentionally left untyped for BC reasons * Intentionally left untyped for BC reasons
* @var int * @var int
*/ */
protected $code = 0; protected $code = 0; // TODO add proper type (i.e. int|string)
protected string $file = ""; protected string $file = "";
protected int $line; protected int $line;
private array $trace = []; private array $trace = [];

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()

View file

@ -568,7 +568,7 @@ final class DOMException extends Exception
* Intentionally left untyped for BC reasons * Intentionally left untyped for BC reasons
* @var int * @var int
*/ */
public $code = 0; public $code = 0; // TODO add proper type (i.e. int|string)
} }
class DOMText extends DOMCharacterData class DOMText extends DOMCharacterData

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 0)
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0) ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)

View file

@ -5,7 +5,7 @@
class PDOException extends RuntimeException class PDOException extends RuntimeException
{ {
/** @var int|string */ /** @var int|string */
protected $code = 0; protected $code = 0; // TODO add proper type
public ?array $errorInfo = null; public ?array $errorInfo = null;
} }

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pdo_drivers, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()