Skip to content

Commit

Permalink
Replace MigrationInterface::class with fqn name for PHP 5.4 compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
raphiz committed Feb 6, 2015
1 parent 4e23acb commit 4eea5b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ class Factory
*
* @var AdapterInterface
*/

private $adapter;

/**
* @var Closure
*/

private $classLoader;

/**
*
* @param AdapterInterface $adapter
* @param Closure $classLoader
*/

public function __construct(AdapterInterface $adapter, Closure $classLoader = null)
{
$this->adapter = $adapter;
Expand Down Expand Up @@ -80,7 +80,7 @@ public function newListFromDirectory($directory, $namespace = '\\')
$classname = basename($file, '.php');
$fullname = $namespace . $classname;

if (is_a($fullname, MigrationInterface::class, true)) {
if (is_a($fullname, "\Genkgo\Migrations\MigrationInterface", true)) {
$collection->attach($classloader($fullname));
}
}
Expand Down

0 comments on commit 4eea5b1

Please sign in to comment.