1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 18:17:55 +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;
}
```