<?php declare(strict_types=1); function doSomething(int|string $value): ?float { if ($value === null) return null; return round($value, 3); } doSomething(1); doSomething('pink');
You have javascript disabled. You will not be able to edit any code.