We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension code:
#[php_class] pub struct Example { #[prop] pub foo: String, #[prop] pub bar: Option<String>, } #[php_impl] impl Example { #[getter] pub fn get_baz(&self) -> Vec<bool> { vec![true, false] } } #[php_startup] pub fn startup_function() {} #[php_module] pub fn get_module(module: ModuleBuilder) -> ModuleBuilder { module }
Expected stubs:
<?php class Example { public string $foo; public string|null $bar; /** * @var array<bool> */ public readonly array $baz; }
Actual stubs:
<?php class Example { public $foo; public $bar; public $baz; public function getBaz(): array {} }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Extension code:
Expected stubs:
Actual stubs:
The text was updated successfully, but these errors were encountered: