Skip to content

Commit 70d6645

Browse files
committed
Add @no-generate-tentative-return-type for Throwable::getCode(9
1 parent 052b75c commit 70d6645

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Zend/zend_exceptions.stub.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ interface Throwable extends Stringable
66
{
77
public function getMessage(): string;
88

9-
/** @return int */
9+
/**
10+
* @return int
11+
* @no-generate-tentative-return-type
12+
*/
1013
public function getCode();
1114

1215
public function getFile(): string;
@@ -41,7 +44,10 @@ public function __wakeup() {}
4144

4245
final public function getMessage(): string {}
4346

44-
/** @return int */
47+
/**
48+
* @return int
49+
* @no-generate-tentative-return-type
50+
*/
4551
final public function getCode() {}
4652

4753
final public function getFile(): string {}
@@ -103,6 +109,7 @@ final public function getMessage(): string {}
103109
/**
104110
* @return int
105111
* @implementation-alias Exception::getCode
112+
* @no-generate-tentative-return-type
106113
*/
107114
final public function getCode() {}
108115

Zend/zend_exceptions_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 9a9ce2975a7449a621d364beca646525fc56b294 */
2+
* Stub hash: c3d9ef0c553b1ec3bd9927987226d76ce4a1b342 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
55
ZEND_END_ARG_INFO()
66

7-
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getCode, 0, 0, IS_LONG, 0)
7+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Throwable_getCode, 0, 0, 0)
88
ZEND_END_ARG_INFO()
99

1010
#define arginfo_class_Throwable_getFile arginfo_class_Throwable_getMessage

0 commit comments

Comments
 (0)