The following code is invalid:
```lang=php
<?php
class MyClass {
public function __toString() {
throw new Exception('oops');
}
}
```
Attempting to run will code will result in a fatal error:
```
PHP Fatal error: Method MyClass::__toString() must not throw an exception
```
We should be able to detect this with a linter rule.