fix php 5.6 in docker dev env (#1740)
[openemr.git] / vendor / adldap2 / adldap2 / src / Configuration / Validators / StringValidator.php
blobfc4cea907b1e5f479c12a769d445474def042f7e
1 <?php
3 namespace Adldap\Configuration\Validators;
5 use Adldap\Configuration\ConfigurationException;
7 class StringValidator extends Validator
9 /**
10 * {@inheritdoc}
12 public function validate()
14 if(!is_string($this->value)) {
15 throw new ConfigurationException("Option {$this->key} must be a string.");
18 return true;