Spot the bug in the switch branch

from PHP fundamentals
PHP 8.3.33 beginner 4 min 1 issue to find

Why does labelStatus paid return closed?

php
<?php
function labelStatus(string $status): string
{
    $label = 'unknown';
    switch ($status) {
        case 'paid':
            $label = 'ready';
        case 'cancelled':
            $label = 'closed';
            break;
    }
    return $label;
}
Open in playground
Report an error