Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php final class InvoiceService { public function send(int $id): void { if ($id < 0) { new InvalidArgumentException('Negative id'); // UnusedMethodCall: created but never thrown } echo "Sending invoice $id"; } } // Classes that only call each other: nothing reachable uses the cycle final class Ping // UnusedClass { public static function ping(): void { Pong::pong(); } } final class Pong // UnusedClass { public static function pong(): void { Ping::ping(); } } // Code used only by unused code is unused too final class PdfRenderer // UnusedClass { public function render(): string { return (new PdfFont())->name(); } } final class PdfFont // UnusedClass { public function name(): string { return 'Helvetica'; } } (new InvoiceService())->send(42);
Issues
Types
idle
Saved Nov 2 2026 18:37 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue