Skip to content

Commit a538517

Browse files
committed
Merge pull request #421 from moarty/master
Align stubs with real zephir methods requirements
2 parents c7d9a3e + 60a7f64 commit a538517

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

ide/2.0.0/Phalcon/db/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getSqlVariables() {}
9999
*
100100
* @param array $descriptor
101101
*/
102-
public function __construct($descriptor) {}
102+
public function __construct(array $descriptor) {}
103103

104104
/**
105105
* Sets the event manager

ide/2.0.0/Phalcon/db/AdapterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface AdapterInterface
1010
*
1111
* @param array $descriptor
1212
*/
13-
public function __construct($descriptor);
13+
public function __construct(array $descriptor);
1414

1515
/**
1616
* Returns the first row in a SQL query result

ide/2.0.0/Phalcon/db/DialectInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function sharedLock($sqlQuery);
3838
* @param array $definition
3939
* @return string
4040
*/
41-
public function select($definition);
41+
public function select(array $definition);
4242

4343
/**
4444
* Gets a list of columns
@@ -182,7 +182,7 @@ public function dropForeignKey($tableName, $schemaName, $referenceName);
182182
* @param $string tableName
183183
* @return
184184
*/
185-
public function createTable($tableName, $schemaName, $definition);
185+
public function createTable($tableName, $schemaName, array $definition);
186186

187187
/**
188188
* Generates SQL to drop a table

ide/2.0.0/Phalcon/mvc/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function getWriteConnection() {}
268268
* @param array $whiteList
269269
* @return \Phalcon\Mvc\Model
270270
*/
271-
public function assign($data, $dataColumnMap = null, $whiteList = null) {}
271+
public function assign(array $data, $dataColumnMap = null, $whiteList = null) {}
272272

273273
/**
274274
* Assigns values to a model from an array returning a new model.

ide/2.0.0/Phalcon/mvc/ModelInterface.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,12 @@ public function getDirtyState();
9494
/**
9595
* Assigns values to a model from an array
9696
*
97-
* @param array $data
98-
* @param mixed $dataColumnMap
99-
* @param mixed $whiteList
100-
* @param \Phalcon\Mvc\Model $object
101-
* @param array $columnMap
102-
* @return \Phalcon\Mvc\Model
97+
* @param array data
98+
* @param array dataColumnMap array to transform keys of data to another
99+
* @param array whiteList
100+
* @return Phalcon\Mvc\Model
103101
*/
104-
public function assign($data, $dataColumnMap = null, $whiteList = null);
102+
public function assign(array $data, $dataColumnMap = null, $whiteList = null);
105103

106104
/**
107105
* Assigns values to a model from an array returning a new model

0 commit comments

Comments
 (0)