Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 211 Bytes

PossiblyInvalidOperand.md

File metadata and controls

12 lines (9 loc) · 211 Bytes

PossiblyInvalidOperand

Emitted when using a possibly invalid value as part of an operation (e.g. +, ., ^ etc.

<?php

function foo() : void {
    $b = rand(0, 1) ? [] : 4;
    echo $b + 5;
}