```php protected function featureValueOf($actual) { if (method_exists($actual, 'toString')) { return $actual->toString(); } return (string) $actual; } ``` This error is detected by phpstan and was written to the baseline in #88 ``` ------ ------------------------------------------------------- Line hamcrest/Hamcrest/Core/HasToString.php ------ ------------------------------------------------------- 41 Cannot call method toString() on class-string|object. 🪪 method.nonObject ✏️ hamcrest/Hamcrest/Core/HasToString.php ------ ------------------------------------------------------- ```