Created
October 16, 2025 18:34
-
-
Save rlerdorf/7f48e4d265fdb4199f560c7b687441e2 to your computer and use it in GitHub Desktop.
Phan Demo - PHP 84, Phan 5.5.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Route { | |
| use T; | |
| function __construct() { | |
| return self::A; | |
| } | |
| } | |
| echo (new Route()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "phpVersion": "84", | |
| "phanVersion": "5.5.2", | |
| "astVersion": "1.1.3", | |
| "plugins": "422261572962", | |
| "fileOrder": [ | |
| "index.php", | |
| "trait.php" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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