1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/dl_test/dl_test.stub.php
Daniel Scherzer 3f3a266a2b gen_stub: Infer constants' types from values (#19568)
Don't require `@var` with a type when the type can be inferred from a literal
value in the stub file.
2025-09-03 18:26:43 -07:00

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 {
}