Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<WeakReferenceWeakReference::create>
^WeakReferenceLast updated: Mon, 26 Oct 2026

WeakReference::__construct

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::__construct — Constructor that disallows instantiation

Description

public function 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


<WeakReferenceWeakReference::create>
^WeakReferenceLast updated: Mon, 26 Oct 2026