Closed ghost closed 10 years ago
Probably shouldn't recurse when it matches Call/ClassGet+args: database_prolog_php.ml:387
It matches database_prolog_php.ml:394 when it shouldn't:
(* the context should be anything except Call *)
It is a 'Call'!
Thx for the bug report!
This should fix it: https://github.com/facebook/pfff/commit/500a5d71eb13bcfc2b8fd1f417c0c51e92ffbec7
The following code registers in the prolog database as constant "use", but it's just a static method call.
The code:
The generated prolog facts:
The call is obviously not a "constant read" of the class, so the fourth line should be removed (I think).
Thanks! AK