Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 203 Bytes

UncaughtThrowInGlobalScope.md

File metadata and controls

15 lines (12 loc) · 203 Bytes

UncaughtThrowInGlobalScope

Emitted when a possible exception isn't caught in global scope

<?php

/**
 * @throws \Exception
 */
function foo() : int {
    return random_int(0, 1);
}
foo();