[ 
https://issues.apache.org/jira/browse/LOG4PHP-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Hansen updated LOG4PHP-77:
------------------------------

    Description: 
PHP throws a notice about LoggerReflectionUtils::setter() being called in the 
wrong context because it is being called statically, but is defined as a class 
method.  The static keyword needs to be added to the method signature.

Index: LoggerReflectionUtils.php
===================================================================
--- LoggerReflectionUtils.php   (revision 806229)
+++ LoggerReflectionUtils.php   (working copy)
@@ -139,7 +139,7 @@
      * @param string $name
      * @param mixed $value
      */
-    public function setter($object, $name, $value) {
+    public static function setter($object, $name, $value) {
         if (empty($name)) {
             return false;
         }


  was:
PHP throws a warning about LoggerReflectionUtils::setter() being called in the 
wrong context because it is being called statically, but is defined as a class 
method.  The static keyword needs to be added to the method signature.

Index: LoggerReflectionUtils.php
===================================================================
--- LoggerReflectionUtils.php   (revision 806229)
+++ LoggerReflectionUtils.php   (working copy)
@@ -139,7 +139,7 @@
      * @param string $name
      * @param mixed $value
      */
-    public function setter($object, $name, $value) {
+    public static function setter($object, $name, $value) {
         if (empty($name)) {
             return false;
         }



> LoggerReflectionUtils::setter() should be defined as a static method
> --------------------------------------------------------------------
>
>                 Key: LOG4PHP-77
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-77
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>            Reporter: Dan Hansen
>            Priority: Trivial
>
> PHP throws a notice about LoggerReflectionUtils::setter() being called in the 
> wrong context because it is being called statically, but is defined as a 
> class method.  The static keyword needs to be added to the method signature.
> Index: LoggerReflectionUtils.php
> ===================================================================
> --- LoggerReflectionUtils.php   (revision 806229)
> +++ LoggerReflectionUtils.php   (working copy)
> @@ -139,7 +139,7 @@
>       * @param string $name
>       * @param mixed $value
>       */
> -    public function setter($object, $name, $value) {
> +    public static function setter($object, $name, $value) {
>          if (empty($name)) {
>              return false;
>          }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to