LibreBooking / app

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.
GNU General Public License v3.0
371 stars 220 forks source link

ci: create an initial CI that runs a syntax check #348

Closed JohnVillalovos closed 1 month ago

JohnVillalovos commented 2 months ago

This was inspired by: https://github.com/phpmyadmin/phpmyadmin/blob/b094f337466a1188ad755b33be5a7b7b25a70916/.github/workflows/lint-and-analyse-php.yml

Resolve issues flagged by the syntax error checker:

    PHP Parse error:  syntax error, unexpected token "new" in ./lib/external/pear/Event/Dispatcher.php on line 249
    Errors parsing ./lib/external/pear/Event/Dispatcher.php
    PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in ./lib/external/pear/System.php on line 238
    Errors parsing ./lib/external/pear/System.php
    PHP Parse error:  syntax error, unexpected token "new" in ./lib/external/pear/Config/Container/XML.php on line 134
    Errors parsing ./lib/external/pear/Config/Container/XML.php
    PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in ./lib/external/pear/Config/Container/IniCommented.php on line 167
    Errors parsing ./lib/external/pear/Config/Container/IniCommented.php
    PHP Fatal error:  __autoload() is no longer supported, use spl_autoload_register() instead in ./lib/external/FeedWriter/FeedWriter.php on line 432
    Errors parsing ./lib/external/FeedWriter/FeedWriter.php
JohnVillalovos commented 2 months ago

This was tested over at: https://github.com/JohnVillalovos/libre-booking/pull/1

Not sure if "Actions" need to be enabled here for things to run.