Skip to content

Instantly share code, notes, and snippets.

@rlerdorf
Created October 16, 2025 18:28
Show Gist options
  • Select an option

  • Save rlerdorf/ae63d0ddf7908fc0b8650a2d37a9b64e to your computer and use it in GitHub Desktop.

Select an option

Save rlerdorf/ae63d0ddf7908fc0b8650a2d37a9b64e to your computer and use it in GitHub Desktop.
Phan Demo - PHP 84, Phan 5.5.2
<?php
class Route {
use T;
function __construct() {
return self::A;
}
}
echo (new Route());
{
"phpVersion": "84",
"phanVersion": "5.5.2",
"astVersion": "1.1.3",
"plugins": "310592423266",
"fileOrder": [
"index.php",
"trait.php"
]
}
<?php
trait T {
const A = 1 + 6;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment