# defender-security/5.4.1/vendor/thecodingmachine/safe/generated/solr.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.4.1. 23 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.4.1/code/vendor/thecodingmachine/safe/generated/solr.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.4.1/raw/vendor/thecodingmachine/safe/generated/solr.php
- Modified: 2022-06-13T09:01:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/5.4.1/code/vendor/thecodingmachine/safe/generated/solr.php#L10-L20`.

```php
<?php

namespace Safe;

use Safe\Exceptions\SolrException;

/**
 * This function returns the current version of the extension as a string.
 *
 * @return string It returns a string on success.
 * @throws SolrException
 *
 */
function solr_get_version(): string
{
    error_clear_last();
    $result = \solr_get_version();
    if ($result === false) {
        throw SolrException::createFromPhpError();
    }
    return $result;
}

```
