title: PHP: Converting integer to int - getting error
body: <p>I understood there wasn't much, if any different between int and integer in PHP. I must be wrong.</p>
  
  <p>I'm passing a integer value to a function which has int only on this value. Like so:-</p>
  
  <pre><code>$new-&gt;setPersonId((int)$newPersonId); // Have tried casting with (int) and intval and both
  </code></pre>
  
  <p>The other side I have:-</p>
  
  <pre><code>    public function setPersonId(int $value) {
          // foobar
      }
  </code></pre>
  
  <p>Now, when I run - I get the message:-</p>
  
  <p><strong>"PHP Catchable fatal error:  Argument 1 passed to setPersonId() must be an instance of int, integer given"</strong></p>
  
  <p>I have tried casting in the call with (int) and intval().</p>
  
  <p>Any ideas?</p>