From 1da80c448ae8bc9792c26a414777df5733d9af42 Mon Sep 17 00:00:00 2001 From: Phobetor Date: Wed, 13 Sep 2017 14:11:04 +0200 Subject: [PATCH] fix variable usage in exception message creation --- Metadata/ClassMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Metadata/ClassMetadata.php b/Metadata/ClassMetadata.php index 0be0535..5da84cb 100644 --- a/Metadata/ClassMetadata.php +++ b/Metadata/ClassMetadata.php @@ -34,7 +34,7 @@ class ClassMetadata extends MergeableClassMetadata public function addMethodMetadata(BaseMethodMetadata $metadata) { if ($this->reflection->isFinal()) { - throw new RuntimeException(sprintf('Class "%s" is declared final, and cannot be secured.', $reflection->name)); + throw new RuntimeException(sprintf('Class "%s" is declared final, and cannot be secured.', $metadata->reflection->name)); } if ($metadata->reflection->isStatic()) {