Skip to content

Commit

Permalink
Fix #52
Browse files Browse the repository at this point in the history
  • Loading branch information
gossi committed Aug 4, 2018
1 parent 8728b5f commit 12fe105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/parts/TraitsPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function removeTrait($trait) {
}

$index = array_search($name, $this->traits);
if ($index) {
if ($index !== false) {
unset($this->traits[$name]);

if ($trait instanceof PhpTrait) {
Expand Down

0 comments on commit 12fe105

Please sign in to comment.