Skip to content

Commit

Permalink
Add deprecation notices.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Dec 6, 2014
1 parent 680a559 commit 310d665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Database/Expression/Comparison.php
Expand Up @@ -77,6 +77,7 @@ public function __construct($field, $value, $type, $operator) {
* @deprecated 3.0.0 Will be removed in 3.0.0 stable. Use setValue() instead.
*/
public function value($value) {
trigger_error('value() has been deprecated. Use setValue() instead.', E_USER_WARNING);
return $this->setValue($value);
}

Expand Down
1 change: 1 addition & 0 deletions src/Database/Expression/FieldTrait.php
Expand Up @@ -39,6 +39,7 @@ trait FieldTrait {
* @deprecated 3.0.0 Will be removed in 3.0.0 stable. Use setField() instead.
*/
public function field($field) {
trigger_error('field() has been deprecated. Use setField() instead.', E_USER_WARNING);
$this->setField($field);
}

Expand Down

0 comments on commit 310d665

Please sign in to comment.