php / 8.1.5 / weakreference.construct.html /

WeakReference::__construct

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::__constructConstructor that disallows instantiation

Description

public WeakReference::__construct()

This method exists only to disallow instantiation of the WeakReference class. Weak references are to be instantiated with the factory method WeakReference::create().

Parameters

This function has no parameters.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/weakreference.construct.php