Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP 7 - Unsupported declare 'strict_types'

Im using PHP 7 for a small project, also using same configs in my local and production server. all works on my local server but on production server after doing the set up for LAMP i was unable to find the apache folder under /etc/php/7.0/apache, so what i was getting an internal server error so i added the in apache.conf

<VirtualHost 127.0.0.1:80>
PHPINIDir /path/to/new/php_ini
</VirtualHost>

Then the internal server error disappeared and now im getting this:

Warning: Unsupported declare 'strict_types' in /var/www/html/index.php on line 2

Any idea why!! Thanks in advance

like image 495
nSams Dev Avatar asked Mar 02 '16 11:03

nSams Dev


1 Answers

in laravel 5.8 i install PHP version 7.2 and worked

like image 174
Razor Mureithi Avatar answered Oct 18 '22 06:10

Razor Mureithi