xp-framework / rad
RAD Module
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/xp-framework/rad
Requires
- php: >=5.4.0
- xp-framework/core: ~6.0
This package is auto-updated.
Last update: 2020-08-29 04:37:51 UTC
README
This module allows rapid application development as PHP warnings are not raised as exceptions, which is the framework's default behaviour since RFC #291 was implemented.
Example
$ xp -w '$a++' Uncaught exception: Exception lang.reflect.TargetInvocationException (xp\runtime\Evaluate::main) at lang.reflect.Method::invoke(NULL, array[1]) [line 248 of class-main.php] Caused by Exception lang.NullPointerException (Undefined variable: a) at <main>::__error(8, (0x15)'Undefined variable: a', (0x60)'...', 1, array[5]) [line 1 of Evaluate.class.php(37) : eval()'d code] at <main>::eval() [line 37 of Evaluate.class.php] at xp.runtime.Evaluate::main(array[1]) [line 0 of StackTraceElement.class.php] ... 2 more
Simply add this module to your class path to enable the RAD mode:
$ xp -cp ../rad/src/main/php/ -w '$a++'
null