1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/src/Psalm/Plugin/EventHandler/StringInterpreterInterface.php
orklah f9fccb2b2d
implement DTO for plugins (#4881)
* implement DTO for plugins

* introduce EventHandler + reintroduce legacy API for plugins
2021-01-06 09:05:53 -05:00

15 lines
333 B
PHP

<?php
namespace Psalm\Plugin\EventHandler;
use Psalm\Plugin\EventHandler\Event\StringInterpreterEvent;
use Psalm\Type;
interface StringInterpreterInterface
{
/**
* Called after a statement has been checked
*/
public static function getTypeFromValue(StringInterpreterEvent $event): ?Type\Atomic\TLiteralString;
}