sstalle / php7cc

PHP 7 Compatibility Checker
MIT License
1.52k stars 120 forks source link

PHP nullable typehinting not supported now #146

Open KarelWintersky opened 6 years ago

KarelWintersky commented 6 years ago

WTF: https://wiki.php.net/rfc/nullable_types

Error:

File: /app/vendor/symfony/config/Definition/BaseNode.php
> [Error] Syntax error, unexpected '?', expecting T_VARIABLE on line 39. Processing aborted.

Code:

    public function __construct(?string $name, NodeInterface $parent = null, array $values = array())