public function __construct(string $className, string $propertyName) { parent::__construct(sprintf('Property $%s was not found in reflection of class %s - probably the wrong version of class is autoloaded.', $propertyName, $className)); }