You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by gr...@apache.org on 2009/05/27 07:42:36 UTC
svn commit: r779006 -
/incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelRange.php
Author: grobmeier
Date: Wed May 27 05:42:36 2009
New Revision: 779006
URL: http://svn.apache.org/viewvc?rev=779006&view=rev
Log:
use of instanceof instead of is_a, since is_a was short term deprecated
Modified:
incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelRange.php
Modified: incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelRange.php
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelRange.php?rev=779006&r1=779005&r2=779006&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelRange.php (original)
+++ incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelRange.php Wed May 27 05:42:36 2009
@@ -83,7 +83,7 @@
* @param string $l the level min to match
*/
public function setLevelMin($l) {
- if(is_a($l, 'LoggerLevel')) {
+ if($l instanceof LoggerLevel) {
$this->levelMin = $l;
} else {
$this->levelMin = LoggerOptionConverter::toLevel($l, null);
@@ -94,7 +94,7 @@
* @param string $l the level max to match
*/
public function setLevelMax($l) {
- if(is_a($l, 'LoggerLevel')) {
+ if($l instanceof LoggerLevel) {
$this->levelMax = $l;
} else {
$this->levelMax = LoggerOptionConverter::toLevel($l, null);