uuid: Unsupported declare 'strict_types'
Parse Error in function.php at 34
Warning: Unsupported declare ‘strict_types’ in /home/austonadmin/public_html/backOfficeAPI/vendor/ramsey/uuid/src/functions.php on line 14
Parse error: syntax error, unexpected ‘?’, expecting variable (T_VARIABLE) in /home/austonadmin/public_html/backOfficeAPI/vendor/ramsey/uuid/src/functions.php on line 34
function v1($node = null, ?int $clockSeq = null): string { return Uuid::uuid1($node, $clockSeq)->toString(); }
On the Server PHP version is 7.3.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (10 by maintainers)
If you put up a page with
phpinfo()
on it and load that page in your browser, can you confirm that you’re running PHP 7.2 or later?I suspect there might be a difference between the CLI and FPM versions of PHP that you’re running. Verifying the version of PHP your web server is using will help me debug this.
I’m confused by this entire thread. There’s no way to receive these error messages on PHP 7.2+. I have no idea what’s going on. I wish I could reproduce this.