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);


Reply via email to