Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php class Anything implements \JsonSerializable, \Stringable { public function jsonSerialize(): array { return []; } public function __toString(): string { return ''; } } class Subject implements \JsonSerializable { // @hint Resolve the union type here to resolve the error: // `Internal Psalm error on line 47 - /vendor/vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php: Could not get class storage for jsonserializable` private \JsonSerializable&\Stringable $property; public function __construct() { $this->property = new Anything(); } public function jsonSerialize(): array { return []; } }
Snippet created on November 6 2023 at 21:52 UTC
Settings
Get link