title: Can parameter types be specialized in PHP
body: <p>Say we've got the following two classes:</p>
  
  <pre><code>abstract class Foo {
      public abstract function run(TypeA $object);
  }
  
  class Bar extends Foo {
      public function run(TypeB $object) {
          // Some code here
      }
  }
  </code></pre>
  
  <p>The class TypeB extends the class TypeA.</p>
  
  <p>Trying to use this yields the following error message:</p>
  
  <p><strong>Declaration of Bar::run() must be compatible with that of Foo::run()</strong></p>
  
  <p>Is PHP really this broken when it comes to parameter types, or am I just missing the point here?</p>