From 0f413c137dbcca03bf921b7583f077af54d17357 Mon Sep 17 00:00:00 2001 From: Gemorroj Date: Sat, 8 May 2021 02:58:19 +0300 Subject: [PATCH] docs: improve my english xD --- src/TagsManagerTrait.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TagsManagerTrait.php b/src/TagsManagerTrait.php index c3ee012..4eda8bd 100644 --- a/src/TagsManagerTrait.php +++ b/src/TagsManagerTrait.php @@ -17,18 +17,18 @@ trait TagsManagerTrait /** * Add tag. * - * @param class-string $tag class name. Must implements ExtTagInterface interface + * @param class-string $tag class name. Must implements the ExtTagInterface interface * * @return $this */ public function addTag(string $tag): self { - $implements = \class_implements($tag); + $implements = @\class_implements($tag); if (false === $implements) { - throw new Exception(\sprintf('Unknown tag %s', $tag)); + throw new Exception(\sprintf('Unknown class %s', $tag)); } if (!\in_array(ExtTagInterface::class, $implements, true)) { - throw new Exception(\sprintf('The class %s must be implement interface %s', $tag, ExtTagInterface::class)); + throw new Exception(\sprintf('The class %s must implements the %s interface', $tag, ExtTagInterface::class)); } $this->tags[] = $tag;