summaryrefslogtreecommitdiff
path: root/ext/zend_test/test.stub.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zend_test/test.stub.php')
-rw-r--r--ext/zend_test/test.stub.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/ext/zend_test/test.stub.php b/ext/zend_test/test.stub.php
index d9db786cee..624ba1195f 100644
--- a/ext/zend_test/test.stub.php
+++ b/ext/zend_test/test.stub.php
@@ -1,6 +1,6 @@
<?php
-/** @generate-function-entries static */
+/** @generate-class-entries static */
namespace {
@@ -9,7 +9,15 @@ interface _ZendTestInterface
}
/** @alias _ZendTestClassAlias */
-class _ZendTestClass {
+class _ZendTestClass implements _ZendTestInterface {
+ /** @var mixed */
+ public static $_StaticProp;
+ public static int $staticIntProp = 123;
+
+ public int $intProp = 123;
+ public ?stdClass $classProp = null;
+ public stdClass|Iterator|null $classUnionProp = null;
+
public static function is_object(): int {}
/** @deprecated */
@@ -23,6 +31,9 @@ class _ZendTestChildClass extends _ZendTestClass
}
trait _ZendTestTrait {
+ /** @var mixed */
+ public $testProp;
+
public function testMethod(): bool {}
}
@@ -79,6 +90,10 @@ class Foo {
namespace ZendTestNS2\ZendSubNS {
+class Foo {
+ public function method(): void {}
+}
+
function namespaced_func(): bool {}
}