title: PHP - Fatal Error: Call to undefined method - but method exist
body: <p>I'm currently creating a ticket handler system, however, I keep getting a very surprising error when I try to call one of my classes.
  The error is:</p>
  
  <pre><code>Fatal error: Call to undefined method makeTickets::submitNewTicket() in /home/shortcut/public_html/MYDOMAIN/explore/account/tickets.php on line 68
  </code></pre>
  
  <p>However, the method I'm trying to use is definitely defined in my class, and it is being printed out in get_class_methods... I'm at a loss at what to do. 
  Here's the main code that's calling the method.</p>
  
  <pre><code>            require_once('app/makeTickets.php');
              $etickets = new makeTickets($loggedInUser);
              print_r(get_class_methods($etickets));
              $etickets-&gt;submitNewTicket();
  </code></pre>
  
  <p>Here is the actual class itself.</p>
  
  <pre><code>&lt;?php
  class makeTickets {
      public $id;
      public $user;
      public function __construct($user){
          $this-&gt;user = $user;
          $this-&gt;id = $user-&gt;user_id;
      }
      public function viewNewTicket(){
          ?&gt;
              &lt;div class="cards"&gt;
                  &lt;div class="default full-width alert"&gt;
                      &lt;h3 class="default alert"&gt;&lt;i class="fa fa-file-text-o"&gt;&lt;/i&gt; Create New Ticket&lt;/h3&gt;
                      &lt;form class="field" action="&lt;?php echo $_SERVER['PHP_SELF'];?&gt;" method="post"&gt;
                      &lt;input type="text" class="title-editor" placeholder="Ticket Title" name="title"/&gt;
                      &lt;textarea id="content" name="content"&gt;&lt;/textarea&gt;
                      &lt;/form&gt;
                      &lt;script&gt;
                          CKEDITOR.replace('content')
                      &lt;/script&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;?php
          return;
      }
      public function sumbitNewTicket(){
          // @todo constructor
          foreach (glob('*.json') as $item){
              echo 'Detected '.$item.'&lt;br&gt;';
          }
          return;
      }
  }
  ?&gt;
  </code></pre>
  
  <p>As for the output, here is the result of my code:
  <img src="https://i.stack.imgur.com/jEvRm.png" alt="enter image description here">
  As you can see, the class method which I'm trying to call is being printed out, so I'm not too sure what's wrong.
  Thanks for any/all help!</p>