Author: grobmeier
Date: Wed May 27 05:32:20 2009
New Revision: 779001

URL: http://svn.apache.org/viewvc?rev=779001&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/LoggerFilterLevelMatch.php

Modified: 
incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php?rev=779001&r1=779000&r2=779001&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php 
(original)
+++ incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php Wed 
May 27 05:32:20 2009
@@ -62,7 +62,7 @@
         * @param string $l the level to match
         */
        public function setLevelToMatch($l) {
-               if(is_a($l, 'LoggerLevel')) {
+               if($l instanceof LoggerLevel) {
                    $this->levelToMatch = $l;
                } else {
                        $this->levelToMatch = 
LoggerOptionConverter::toLevel($l, null);


Reply via email to