Skip to content

Commit 12fe105

Browse files
committed
Fix #52
1 parent 8728b5f commit 12fe105

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/model/parts/TraitsPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function removeTrait($trait) {
108108
}
109109

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

114114
if ($trait instanceof PhpTrait) {

0 commit comments

Comments
 (0)