php8.5
Home/ Manual/ predefined / weakreference/ WeakReference::__construct

WeakReference::__construct

PHP function Edit on GitHub ✎

(PHP 7 >= 7.4.0, PHP 8)

Constructor that disallows instantiation

Description

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 Parameters

See Also

  • WeakReference::create

Source: language/predefined/weakreference/construct.xml · from the official PHP manual (php/doc-en)