Closed Ocramius closed 9 years ago
:+1:
"facade", mhmmm
@danizord a real Façade, not a Laravel facade.
:+1:
StrictPhp\StrictPhp::init([
StrictPhp\StrictPhp::POST_CONSTRUCT_CHECKS,
StrictPhp\StrictPhp::PARAMETER_INTERFACE_JAILING,
StrictPhp\StrictPhp::PARAMETER_STRICT_TYPE_CHECKING,
StrictPhp\StrictPhp::PROPERTY_WRITE_TYPE_CHECKING,
StrictPhp\StrictPhp::POST_PUBLIC_METHOD_CALL_STATE_CHECKS,
// ...
]);
Closed as done in #48
As per current setup, StrictPhp is probably too strict for most libraries.
We may want to allow enabling/disabling of the various interceptors in StrictPhp.
A small "facade" in front of the singleton kernel may do the trick.