1--TEST--
2Test that exposing doc comments are supported by internal symbols
3--EXTENSIONS--
4zend_test
5reflection
6--FILE--
7<?php
8
9$rc = new ReflectionClass(ZendTestPropertyAttribute::class);
10var_dump($rc->getDocComment());
11
12$rc = new ReflectionClassConstant(_ZendTestInterface::class, "DUMMY");
13var_dump($rc->getDocComment());
14
15$rf = new ReflectionFunction("zend_test_nullable_array_return");
16var_dump($rf->getDocComment());
17
18$rp = new ReflectionProperty(new ZendTestPropertyAttribute(""), "parameter");
19var_dump($rp->getDocComment());
20
21?>
22--EXPECT--
23string(82) "/**
24     * "Lorem ipsum"
25     * @see https://www.php.net
26     * @since 8.1
27     */"
28string(98) "/**
29         * "Lorem ipsum"
30         * @see https://www.php.net
31         * @since 8.2
32         */"
33string(82) "/**
34     * "Lorem ipsum"
35     * @see https://www.php.net
36     * @since 8.3
37     */"
38string(98) "/**
39         * "Lorem ipsum"
40         * @see https://www.php.net
41         * @since 8.4
42         */"
43