Skip to content

Commit

Permalink
PhpStyles->name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
izica committed Oct 12, 2018
1 parent c416ef5 commit 20fa912
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PhpStyles.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ public function opacity($value, $condition)

/**
* @param $value
* @param $condition
* @return $this
*/
public function name($value)
{
return $this->set('opacity', $value, $condition);
if(is_string($value)){
$this->classname = $value
}
return $this;
}
}

0 comments on commit 20fa912

Please sign in to comment.