Skip to content

Commit

Permalink
Index & Connection class constructors made public as it's no longer p…
Browse files Browse the repository at this point in the history
…ossible to use protected in PHP7.1 (instantiating was possible from within extension even from an improper context but this has been fixed in new PHP version)
  • Loading branch information
crocodile2u committed Jun 29, 2017
1 parent c6f0a03 commit 226018a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zhandlersocket/Connection.zep
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Connection {
/**
* Constructor. Setup connection params, initialize Logger
*/
protected function __construct(string host = "127.0.0.1", int port, bool persistent = false, <Logger> logger = null) {
public function __construct(string host = "127.0.0.1", int port, bool persistent = false, <Logger> logger = null) {
let this->host = host;
let this->port = port;
let this->persistent = persistent;
Expand Down
2 changes: 1 addition & 1 deletion zhandlersocket/Index.zep
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Index {
/**
* Constructor. Set up index params.
*/
protected function __construct(<Client> client, string dbname, string table, string idx, array cols, fcols = null) {
public function __construct(<Client> client, string dbname, string table, string idx, array cols, fcols = null) {
let this->client = client;
let this->dbname = dbname;
let this->table = table;
Expand Down

0 comments on commit 226018a

Please sign in to comment.