Skip to content

Commit

Permalink
Use late static binding
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 29, 2015
1 parent 6571eca commit 5aa00c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FactoryMuffin.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ protected function generate($model, array $attr = [])
foreach ($attr as $key => $kind) {
$value = $this->generatorFactory->generate($kind, $model, $this);

$setter = 'set'.ucfirst(self::camelize($key));
$setter = 'set'.ucfirst(static::camelize($key));

// check if there is a setter and use it instead
if (method_exists($model, $setter)) {
Expand Down

0 comments on commit 5aa00c0

Please sign in to comment.