Psalm
Get started
Documentation
Plugins
Articles
GitHub
<?php declare(strict_types=1); /** * @psalm-return object{name: string, age: int} */ function create(): object { $object = new stdClass(); $object->name = 'User'; $object->age = 22; return $object; } $user = create(); echo $user->nam;
Snippet created on December 14 2021 at 09:02 UTC
Settings
Get link