What are the potential pitfalls of using return statements in constructors in PHP classes?

Using return statements in constructors in PHP classes can lead to unexpected behavior or errors, as constructors are meant to initialize the object and not return a value. To avoid this issue, refrain from using return statements in constructors and instead focus on setting up the object's initial state within the constructor method.

class Example {
    private $value;

    public function __construct($value) {
        $this->value = $value;
    }
}

$exampleObject = new Example('Hello');