PHPantom version
phpantom_lsp 0.8.0-86-gefdc9ae4
Installation method
Pre-built binary from GitHub Releases
Operating system
macOS aarch64 (Apple Silicon)
Editor
VS Code
Bug description
The following
causes a php error, phpantom, however should report a diagnostic for this, since the return type and the declared type (void) don't match.
Fatal error: A void method must not return a value..
Steps to reproduce
<?php
class Foo {
public function foo(): void
{
return 1;
}
}
Error output or panic trace
.phpantom.toml
Additional context
No response
PHPantom version
phpantom_lsp 0.8.0-86-gefdc9ae4
Installation method
Pre-built binary from GitHub Releases
Operating system
macOS aarch64 (Apple Silicon)
Editor
VS Code
Bug description
The following
causes a php error, phpantom, however should report a diagnostic for this, since the return type and the declared type (void) don't match.
Fatal error: A void method must not return a value..Steps to reproduce
Error output or panic trace
.phpantom.toml
Additional context
No response