update page now
Laravel Live Japan

Voting

: eight plus one?
(Example: nine)

The Note You're Voting On

domger at freenet dot de
8 years ago
The __destruct magic method must be public. 

public function __destruct()
{
    ;
}

The method will automatically be called externally to the instance.  Declaring __destruct as protected or private will result in a warning and the magic method will not be called. 

Note: In PHP 5.3.10 i saw strange side effects while some Destructors were declared as protected.

<< Back to user notes page

To Top