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:32:20 UTC

svn commit: r779001 - /incubator/log4php/trunk/src/main/php/filters/LoggerFilterLevelMatch.php

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