Skip to content

Commit

Permalink
Fixing a few more E_STRICT errors in postgres test/class.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 4, 2010
1 parent 843f5c6 commit a6c5065
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo/dbo_postgres.php
Expand Up @@ -152,7 +152,7 @@ function enabled() {
*
* @return array Array of tablenames in the database
*/
function listSources() {
function listSources($data = null) {
$cache = parent::listSources();

if ($cache != null) {
Expand Down
Expand Up @@ -44,7 +44,7 @@ class DboPostgresTestDb extends DboPostgres {
* @access protected
* @return void
*/
function _execute($sql) {
function _execute($sql, $params = array()) {
$this->simulated[] = $sql;
return null;
}
Expand Down Expand Up @@ -130,7 +130,7 @@ function findAll($conditions = null, $fields = null, $order = null, $recursive =
* @access public
* @return void
*/
function schema() {
function schema($field = false) {
return array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'client_id' => array('type' => 'integer', 'null' => '', 'default' => '0', 'length' => '11'),
Expand Down Expand Up @@ -184,7 +184,7 @@ class PostgresClientTestModel extends Model {
* @access public
* @return void
*/
function schema() {
function schema($field = false) {
return array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8', 'key' => 'primary'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
Expand Down

0 comments on commit a6c5065

Please sign in to comment.