4 // opaque type should not implicitly convert to string.
5 // even when the type backing it does implicit convert to
11 newtype OpaqueInt
= int;
14 public OpaqueInt
$opaque_int;
15 public function __construct() {
16 $this->opaque_int
= 5;
25 public function __construct() {
26 $this->foo
= 'B' . (new Opaque())->opaque_int
;