Spot the bug in the UnitEnum helper

from Enums
PHP 8.3.33 intermediate 4 min 1 issue to find

Find why this helper fails for Mode::Read.

php
<?php
function externalValue(UnitEnum $case): int|string
{
    return $case->value;
}
enum Mode
{
    case Read;
}
echo externalValue(Mode::Read);
Open in playground
Report an error