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.php35
1 files changed, 33 insertions, 2 deletions
diff --git a/ext/zend_test/test.stub.php b/ext/zend_test/test.stub.php
index 486b383e1d..bf70fe200f 100644
--- a/ext/zend_test/test.stub.php
+++ b/ext/zend_test/test.stub.php
@@ -1,10 +1,26 @@
<?php
-/** @generate-function-entries static */
+/**
+ * @generate-function-entries static
+ * @generate-class-entries
+ */
namespace {
-class _ZendTestClass {
+interface _ZendTestInterface
+{
+}
+
+/** @alias _ZendTestClassAlias */
+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 */
@@ -13,10 +29,21 @@ class _ZendTestClass {
public function returnsStatic(): static {}
}
+class _ZendTestChildClass extends _ZendTestClass
+{
+}
+
trait _ZendTestTrait {
+ /** @var mixed */
+ public $testProp;
+
public function testMethod(): bool {}
}
+final class ZendTestAttribute {
+
+}
+
function zend_test_array_return(): array {}
function zend_test_nullable_array_return(): ?array {}
@@ -66,6 +93,10 @@ class Foo {
namespace ZendTestNS2\ZendSubNS {
+class Foo {
+ public function method(): void {}
+}
+
function namespaced_func(): bool {}
}