Skip to content

Commit

Permalink
Adapters: MemoryAdapter accepts $schema = NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Jul 7, 2018
1 parent 4a8c1c2 commit d9b781d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adapters/MemoryAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class MemoryAdapter implements IAdapter
private $schema;


public function __construct(Schema $schema)
public function __construct(Schema $schema = NULL)
{
$this->schema = $schema;
$this->schema = $schema ? $schema : new Schema;
}


Expand Down

0 comments on commit d9b781d

Please sign in to comment.