Skip to content

Commit 1c67e37

Browse files
committed
Fix PHP notice
1 parent e685017 commit 1c67e37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Generators/TestGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ protected function addTrait(Controller $controller, $trait)
373373

374374
private function buildTraits(Controller $controller)
375375
{
376+
if (empty($this->traits[$controller->name()])) {
377+
return '';
378+
}
379+
376380
$traits = array_unique($this->traits[$controller->name()]);
377381
sort($traits);
378382

0 commit comments

Comments
 (0)