Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Deprecation class throws notice on PHP 5.2

Checks on constants must be within quotes.
  • Loading branch information...
commit 3c5fd14f38d711daa02f554696b1e153929a43b9 1 parent 8f96ea7
@stojg stojg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  dev/Deprecation.php
View
2  dev/Deprecation.php
@@ -133,7 +133,7 @@ public static function notice($atVersion, $string = '') {
// Get the level to raise the notice as
$level = self::$notice_level;
- if (!$level) $level = defined(E_USER_DEPRECATED) ? E_USER_DEPRECATED : E_USER_NOTICE;
+ if (!$level) $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_NOTICE;
// Then raise the notice
if(substr($string,-1) != '.') $string .= ".";
Please sign in to comment.
Something went wrong with that request. Please try again.