php-cfg
php-cfg copied to clipboard
A Control Flow Graph implementation in PHP
fix #90
I would like to improve php-cfg to add information about php attributes in the CFG. For this code sample: ``` #[ExampleAttribute('Hello world', 42)] class NameOfClass { } ``` Do you...
Hi, I have created a dockerfile for php-cfg to make it easier for people to create execution environments and get a feel for the power of php-cfg with demo.php !
PHP 7.1 and above has [nullable types](http://php.net/manual/en/migration71.new-features.php). Parser doesn`t recognize them. Example: Change the example function declaration at the bottom of [demo.php](https://github.com/ircmaxell/php-cfg/blob/master/demo.php) and add nullable type: > function foo(?array $a)...
Should there be a way to tell if the argument was referenced? Example: ``` ``` Output ``` Block#1 Stmt_Function Expr_Assign var: Var#1 expr: LITERAL('1') result: Var#2 Expr_FuncCall name: LITERAL('doNothing') args[0]:...
I was hoping you could take a look at this, it's not meant to be merged in its current form. If we can come to some concencus about how this...