mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Don't require `@var` with a type when the type can be inferred from a literal value in the stub file.
28 lines
430 B
PHP
28 lines
430 B
PHP
<?php
|
|
|
|
/**
|
|
* @generate-class-entries
|
|
* @undocumentable
|
|
*/
|
|
|
|
const DL_TEST_CONST = 42;
|
|
|
|
function dl_test_test1(): void {}
|
|
|
|
function dl_test_test2(string $str = ""): string {}
|
|
|
|
class DlTest {
|
|
public function test(string $str = ""): string {}
|
|
}
|
|
|
|
class DlTestSuperClass {
|
|
public int $a;
|
|
public function test(string $str = ""): string {}
|
|
}
|
|
|
|
class DlTestSubClass extends DlTestSuperClass {
|
|
}
|
|
|
|
class DlTestAliasedClass {
|
|
}
|