Dmitry Patsura
Dmitry Patsura
refs https://wiki.php.net/rfc/this_var ``` php // Запретить использование в качестве имени параметра function foo($this) { } // Запретить использование в качестве статической переменной static $this; // Запретить использование как глобальной переменной...
Noticed from Reddit: > I was looking for a project to do something somewhat like this earlier in the week. > Do you have plans (or implementation) to statically ensure...
``` php function test() { $a = function() { $a = 1; $a++; }; return $a(); } ```
This will rly helpfull to detect @return @param @tests and etc
https://wiki.php.net/rfc/forbid_dynamic_scope_introspection For the functions - extract() - compact() - get_defined_vars() - parse_str() with one arg - mb_parse_str() with one arg - assert() with string argument (eval) - func_get_args() - func_get_arg()...