Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save rlerdorf/b30ea58cc71676f403aacbc0331efc1a 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": "422261572962",
"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