Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit db6e7a1

Browse files
danezOcramius
authored andcommitted
Fix isInstantiable() : return false for traits
1 parent c5300cd commit db6e7a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Scanner/ClassScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function isTrait()
236236
public function isInstantiable()
237237
{
238238
$this->scan();
239-
return (!$this->isAbstract && !$this->isInterface);
239+
return (!$this->isAbstract && !$this->isInterface && !$this->isTrait);
240240
}
241241

242242
/**

0 commit comments

Comments
 (0)