Psalm
Get started
Documentation
Plugins
Articles
GitHub
<?php /** * @psalm-param array{name: string, age: int, status: int} $payload */ function take(array $payload): void { echo $payload['name']; echo $payload['age'] + 1; echo $payload['status']; } take(['name' => 2, 'age' => 'wrong']);
Snippet created on December 14 2021 at 06:25 UTC
Settings
Get link