From 96cad83eb06c39792749ba1fc7740d88905c0380 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Sun, 15 Oct 2017 17:34:38 +0200 Subject: [PATCH] Fixed undefined variable --- Metadata/ClassMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Metadata/ClassMetadata.php b/Metadata/ClassMetadata.php index 0be0535..d626b30 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.', $this->reflection->name)); } if ($metadata->reflection->isStatic()) {