phayes / geoPHP

Advanced geometry operations in PHP
https://geophp.net
Other
861 stars 262 forks source link

geoPHP/tests/postgis.php use PHP short tag #195

Open obriat opened 1 year ago

obriat commented 1 year ago

phpcs -p --standard=PHPCompatibility --runtime-set testVersion 8.1- return the following error:

FILE: geoPHP/tests/postgis.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
`phpcs -p  --standard=PHPCompatibility --runtime-set testVersion 8.1- ` return the following error:

Just replace <? with <?php on the first line