Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 194 Bytes

PossiblyInvalidClone.md

File metadata and controls

16 lines (12 loc) · 194 Bytes

PossiblyInvalidClone

Emitted when trying to clone a value that's possibly not cloneable

<?php

class A {}

/**
 * @param A|string $a
 */
function foo($a) {
    return clone $a;
}