<?php class MyDTO{ public ?int $propA; public ?int $propB; } $dto = new MyDTO(); $dto->propA = null; echo isset($dto->propA) ? 'init' : 'not-init';
You have javascript disabled. You will not be able to edit any code.