mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 10:57:08 +01:00
f9fccb2b2d
* implement DTO for plugins * introduce EventHandler + reintroduce legacy API for plugins
15 lines
333 B
PHP
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;
|
|
}
|