| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace PHPStan\BetterReflection\Reflection\Exception; |
| 6: | |
| 7: | use LogicException; |
| 8: | |
| 9: | class Uncloneable extends LogicException |
| 10: | { |
| 11: | public static function fromClass(string $className): self |
| 12: | { |
| 13: | return new self('Trying to clone an uncloneable object of class ' . $className); |
| 14: | } |
| 15: | } |
| 16: |