Skip to content

Commit

Permalink
''
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoSirius committed Oct 31, 2017
1 parent 9981a3c commit 80436cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Traits/InteractsWithConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Sirius\Support\Traits;

use Sirius\Support\Repository;
use Sirius\Support\Contracts\Repository as RepostoryContract;

/**
* @internal
Expand Down Expand Up @@ -61,7 +62,7 @@ protected function ensureRepository( $repository ) {
return new Repository();
}

if ( $repository instanceof Repository ) {
if ( $repository instanceof RepostoryContract ) {
return $repository;
}

Expand Down

0 comments on commit 80436cf

Please sign in to comment.