CloneableFinalInstantiable
ExtendsPhpParser\Lexer\TokenEmulator\TokenEmulator
Constants
public PhpParser\Lexer\TokenEmulator\FlexibleDocStringEmulator::FLEXIBLE_DOC_STRING_REGEX = '/<<<[ \t]*(['"]?)([a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*)\1\r?\n (?:.*\r?\n)*? (?\h*)\2(?![a-zA-Z0-9_\x80-\xff])(?(?:;?[\r\n])?)/x'
Methods
public emulate(string $code, array $tokens) : array
public getPhpVersion() : string
public isEmulationNeeded(string $code) : bool
public preprocessCode(string $code, array $patches) : string
public reverseEmulate(string $code, array $tokens) : array
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only