From 3b292bb8dcce6f0ed7270f95f6d16a01e04dfcfa Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Tue, 8 Nov 2022 13:53:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BD=D0=BE=D1=82=D0=B8=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Dictionary/AbstractDictionary.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dictionary/AbstractDictionary.php b/src/Dictionary/AbstractDictionary.php index 01477cd..63030c0 100755 --- a/src/Dictionary/AbstractDictionary.php +++ b/src/Dictionary/AbstractDictionary.php @@ -12,17 +12,17 @@ abstract class AbstractDictionary implements DictionaryInterface $options = []; - if (!!$implements[TitleAwareInterface::class]) + if (in_array(TitleAwareInterface::class, $implements)) { $options['title'] = $data['title'] ?? null; } - if (!!$implements[OIDAwareInterface::class]) + if (in_array(OIDAwareInterface::class, $implements)) { $options['OID'] = $data['OID'] ?? null; } - if (!!$implements[RDNAwareInterface::class]) + if (in_array(RDNAwareInterface::class, $implements)) { $options['RDN'] = $data['RDN'] ?? null; }