Ver Fonte

Label static functions as such; callers won't get deprecated warnings in PHP7

pdontthink há 8 anos atrás
pai
commit
996ce5af9e
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      class/mime/Message.class.php

+ 2 - 2
class/mime/Message.class.php

@@ -292,7 +292,7 @@ class Message {
      * @return object Message object
      * @return object Message object
      * @todo define argument and return types
      * @todo define argument and return types
      */
      */
-    function parseStructure($read, &$i, $sub_msg = '') {
+    static function parseStructure($read, &$i, $sub_msg = '') {
         $msg = Message::parseBodyStructure($read, $i, $sub_msg);
         $msg = Message::parseBodyStructure($read, $i, $sub_msg);
         if($msg) $msg->setEntIds($msg,false,0);
         if($msg) $msg->setEntIds($msg,false,0);
         return $msg;
         return $msg;
@@ -342,7 +342,7 @@ class Message {
      * @todo document me
      * @todo document me
      * @since 1.4.0 (code was part of parseStructure() in 1.3.x)
      * @since 1.4.0 (code was part of parseStructure() in 1.3.x)
      */
      */
-    function parseBodyStructure($read, &$i, $sub_msg = '') {
+    static function parseBodyStructure($read, &$i, $sub_msg = '') {
         $arg_no = 0;
         $arg_no = 0;
         $arg_a  = array();
         $arg_a  = array();
         if ($sub_msg) {
         if ($sub_msg) {