php8.5
Home/ Manual/ predefined / closure/ Closure::__construct

Closure::__construct

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Constructor that disallows instantiation

Description

Closure::__construct()

This method exists only to disallow instantiation of the Closure class. Objects of this class are created in the fashion described on the anonymous functions page.

Parameters Parameters

See Also

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