title: PHP Trait call inherited function
body: <p>I have got a trait</p>
  
  <pre><code>trait Foo{
  
      protected static function foo(){
          echo 'Hello';
      }
  }
  </code></pre>
  
  <p>and a class</p>
  
  <pre><code>class Bar{
      use Foo;
  
      private static function foo(){
          Foo::foo();
  
          echo ' World!';
      }
  }
  </code></pre>
  
  <p>I cannot use <code>Foo:foo()</code>. What can I do to achieve the desired effect?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Using </p>
  
  <pre><code>use Foo {foo as parentFoo}
  
  private static function foo(){
  
      self::parentFoo();
  
      echo ' World!';
  
  }
  </code></pre>
  
  <p>did the trick.</p>