hphp_create_object_without_constructor

hphp_create_object_without_constructor() - Used by ReflectionClass to create a new instance of an object, without calling the constructor

function hphp_create_object_without_constructor(
  string $name,
): object;

Parameters

  • string $name - The name of the object to create.

Returns

  • object - - The newly created object