Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-77

LoggerReflectionUtils::setter() should be defined as a static method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.0
    • Code
    • None

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            dhansen Dan Hansen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: