Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmejias committed Jan 1, 2022
2 parents 6614f79 + 19bf135 commit 2ab8828
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Veil.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public function add($veils, $class = null): Veil
if (interface_exists($veil)) {
$this->registered[$veil] = $this->veils[$veil];
}

if (trait_exists($veil)) {
$this->registered[$veil] = $this->veils[$veil];
}
}
}

Expand All @@ -138,6 +142,10 @@ public function add($veils, $class = null): Veil
if (interface_exists($veils)) {
$this->registered[$veils] = $this->veils[$veils];
}

if (trait_exists($veils)) {
$this->registered[$veils] = $this->veils[$veils];
}
}

return $this;
Expand Down

0 comments on commit 2ab8828

Please sign in to comment.