Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sileence committed Dec 21, 2016
1 parent 56b6275 commit 07157a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function buildViewData()
$data = $this->viewData;

foreach ((new ReflectionClass($this))->getProperties(ReflectionProperty::IS_PUBLIC) as $property) {
if ($property->getDeclaringClass()->getName() != Mailable::class) {
if ($property->getDeclaringClass()->getName() != self::class) {
$data[$property->getName()] = $property->getValue($this);
}
}
Expand Down

0 comments on commit 07157a7

Please sign in to comment.