Php/docs/weakreference.get
From Get docs
WeakReference::get
(PHP 7 >= 7.4.0)
WeakReference::get — Get a weakly referenced Object
Description
public WeakReference::get ( ) : object|null
Gets a weakly referenced object.
If the object has already been destroyed, NULL
is returned.
Parameters
This function has no parameters.
Return Values
Returns the referenced object, or NULL
if the object has been destroyed.