Skip to content

Commit

Permalink
Reverting In Favor Of More Formal Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenikkusu committed Apr 20, 2022
1 parent 6144436 commit 005c201
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion phalcon/Db/Adapter/Pdo/Mysql.zep
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class Mysql extends PdoAdapter
} elseif index["Non_unique"] == 0 {
let indexes[keyName]["type"] = "UNIQUE";
} else {
let indexes[keyName]["type"] = null;
let indexes[keyName]["type"] = "";
}
}

Expand Down
14 changes: 2 additions & 12 deletions phalcon/Db/Index.zep
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ class Index implements IndexInterface
/**
* Index type
*
* @var string|null
* @var string
*/
protected type;
protected type { get };

/**
* Phalcon\Db\Index constructor
Expand All @@ -71,14 +71,4 @@ class Index implements IndexInterface
let this->columns = columns;
let this->type = type;
}

/**
* Index type
*
* @return string|null
*/
public function getType() -> string | null
{
return this->type;
}
}
2 changes: 1 addition & 1 deletion phalcon/Db/IndexInterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ interface IndexInterface
/**
* Gets the index type
*/
public function getType() -> string | null;
public function getType() -> string;
}

0 comments on commit 005c201

Please sign in to comment.