Blank page if I declare(strict_types=1); in PHP 7 at top of the file
Recently I was checking out on PHP 7, specifically return type declaration and type hinting . I have compiled PHP 7 from source(master branch from Github ) and running it in Ubuntu 14.04 virtual box. I tried to run following code to get a test of new Exceptions . But it Gave a blank page. <?php function test(): string { return []; } echo test(); Then I realize I have to set error to be displayed on screen. So I added old fashioned ini_set('display_errors', 1); like below, <?php ini_set('display_errors', 1); function test(): string { return []; } echo test(); that gave me following TypeError as