[prev in list] [next in list] [prev in thread] [next in thread]
List: log4php-dev
Subject: svn commit: r779006 -
From: grobmeier () apache ! org
Date: 2009-05-27 5:42:36
Message-ID: 20090527054236.A9936238888E () eris ! apache ! org
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic