php8.5
Home/ Manual/ attributes / nodiscard/ NoDiscard::__construct

NoDiscard::__construct

PHP function Edit on GitHub ✎

(PHP 8 >= 8.5.0)

Construct a new NoDiscard attribute instance

Description

NoDiscard::__construct(string|null $message = null)

Constructs a new NoDiscard instance.

Parameters

message

The value of the message property.

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