Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deprecating String::getInstance()

  • Loading branch information...
commit 4bf807b4be5f35faad95f30bd77df01c3cb8d3ac 1 parent 1e7c2bb
@markstory markstory authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  cake/libs/string.php
View
2  cake/libs/string.php
@@ -34,8 +34,10 @@ class String {
* @return object String instance
* @access public
* @static
+ * @deprecated
*/
function &getInstance() {
+ trigger_error('String::getInstance() is deprecated. All String methods are called statically.', E_USER_WARNING);
static $instance = array();
if (!$instance) {

0 comments on commit 4bf807b

Please sign in to comment.
Something went wrong with that request. Please try again.