parent
a544a473ff
commit
7a9556c95b
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/** @noinspection PhpIllegalPsrClassPathInspection */
|
||||
|
||||
namespace Temp\PHP;
|
||||
|
||||
use Exception;
|
||||
|
||||
$class = Exception::class;
|
||||
|
||||
/**
|
||||
* Class Test : {@see Exception}
|
||||
*/
|
||||
class Test {
|
||||
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use jrosset\BetterPhpToken\BetterPhpToken;
|
||||
|
||||
$tokens = BetterPhpToken::tokenize(file_get_contents(__DIR__ . '/_code.php'));
|
||||
foreach ($tokens as $token) {
|
||||
echo $token->getTokenName() . '(' . $token->getTokenId() . '): ' . $token->getText() . PHP_EOL;
|
||||
}
|
Loading…
Reference in New Issue