Psalm
Get started
Documentation
Plugins
Articles
GitHub
<?php class C { /** @param int $x */ public function __construct( /** @psalm-readonly-allow-private-mutation */ public $x ) {} public function f(int $x): void { $this->x = $x; } } $c = new C(10); $c->f(20);
Snippet created on February 24 2022 at 19:07 UTC
Settings
Get link