final | |
---|---|
extends |
TokenEmulator |
Methods | ||
---|---|---|
public
|
getPhpVersion(): string
|
# |
public
|
isEmulationNeeded(string $code): bool
|
# |
public
|
emulate(string $code, array $tokens): array
|
# |
public
|
reverseEmulate(string $code, array $tokens): array
|
# |
public
|
preprocessCode(string $code, array &$patches): string
|
# |
Constants | ||
---|---|---|
public
|
FLEXIBLE_DOC_STRING_REGEX = "/<<<[ \\t]*(['"]?)([a-zA-Z_\\x80-\\xff][a-zA-Z0-9_\\x80-\\xff]*)\\1\\r?\\n\n(?:.*\\r?\\n)*?\n(?<indentation>\\h*)\\2(?![a-zA-Z0-9_\\x80-\\xff])(?<separator>(?:;?[\\r\\n])?)/x"
|
# |