Skip to content

Commit

Permalink
Fix STRICT warnings on PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cuppett committed Aug 19, 2012
1 parent 08e4362 commit 7e5f326
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Cake/Model/Datasource/DataSource.php
Expand Up @@ -197,9 +197,10 @@ public function create(Model $model, $fields = null, $values = null) {
*
* @param Model $model The model being read.
* @param array $queryData An array of query data used to find the data you want
* @param integer $recursive Number of levels of association
* @return mixed
*/
public function read(Model $model, $queryData = array()) {
public function read(Model $model, $queryData = array(), $recursive = null) {
return false;
}

Expand All @@ -211,9 +212,10 @@ public function read(Model $model, $queryData = array()) {
* @param Model $model Instance of the model class being updated
* @param array $fields Array of fields to be updated
* @param array $values Array of values to be update $fields to.
* @param mixed $conditions
* @return boolean Success
*/
public function update(Model $model, $fields = null, $values = null) {
public function update(Model $model, $fields = null, $values = null, $conditions = null) {
return false;
}

Expand Down

0 comments on commit 7e5f326

Please sign in to comment.