1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/docs/running_psalm/issues/PossiblyInvalidClone.md

17 lines
194 B
Markdown
Raw Normal View History

# PossiblyInvalidClone
Emitted when trying to clone a value that's possibly not cloneable
```php
<?php
class A {}
/**
* @param A|string $a
*/
function foo($a) {
return clone $a;
}
```