The scalar and return types are really a great improvement IMHO, I can&#x27;t wait for Doctrine to fully support it for code generation.<p>But one thing which is missing is the nullable types, as currently it&#x27;s either you always return a string and you can use scalar typing, or you sometimes return null and you can&#x27;t use it (which I&#x27;m okay with)<p><a href="https:&#x2F;&#x2F;wiki.php.net&#x2F;rfc&#x2F;nullable_types" rel="nofollow">https:&#x2F;&#x2F;wiki.php.net&#x2F;rfc&#x2F;nullable_types</a>
<a href="https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;pull&#x2F;1045" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;php&#x2F;php-src&#x2F;pull&#x2F;1045</a><p>With this, it will permit to have even better static analysis &quot;a la&quot; HHVM&#x2F;hack (i.e detecting that you haven&#x27;t check for is_null in your code