mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 08:49:52 +01:00
04a576708c
* Correct analyze clone, add PossibleInvalidClone issue type * Infer mixed type when possible incorrect clone * Remove unused variable
194 B
194 B
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;
}