LaravelConf Taiwan 2020 CFP Started


(PHP 5 >= 5.4.0, PHP 7)

ReflectionClass::newInstanceWithoutConstructorCreates a new class instance without invoking the constructor


public ReflectionClass::newInstanceWithoutConstructor ( void ) : object

Creates a new instance of the class without invoking the constructor.


Return Values


Version Description
5.6.0 All internal classes can now be instantiated except for those declared final.


A ReflectionException if the class is an internal class that cannot be instantiated without invoking the constructor. In PHP 5.6.0 onwards, this exception is limited only to internal classes that are final.

See Also

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top