Skip to content

syntax error, unexpected '|', expecting variable (T_VARIABLE) #681

@rajnishkn

Description

@rajnishkn

Describe the bug
syntax error, unexpected '|', expecting variable (T_VARIABLE) (0)
#0 [internal function]: flight\core\Loader::loadClass('FlightWikiPage')
#1 C:\www\flightFramework\FlightWiki\index.php(87): spl_autoload_call('FlightWikiPage')
#2 [internal function]: {closure}('home')
#3 C:\www\flightFramework\FlightWiki\flight\core\Dispatcher.php(366): call_user_func_array(Object(Closure), Array)
#4 C:\www\flightFramework\FlightWiki\flight\core\Dispatcher.php(299): flight\core\Dispatcher->invokeCallable(Object(Closure), Array)
#5 C:\www\flightFramework\FlightWiki\flight\Engine.php(616): flight\core\Dispatcher->execute(Object(Closure), Array)
#6 [internal function]: flight\Engine->_start()
#7 C:\www\flightFramework\FlightWiki\flight\core\Dispatcher.php(388): call_user_func_array(Array, Array)
#8 C:\www\flightFramework\FlightWiki\flight\core\Dispatcher.php(299): flight\core\Dispatcher->invokeCallable(Array, Array)
#9 C:\www\flightFramework\FlightWiki\flight\core\Dispatcher.php(143): flight\core\Dispatcher->execute(Array, Array)
#10 C:\www\flightFramework\FlightWiki\flight\core\Dispatcher.php(106): flight\core\Dispatcher->runEvent('start', Array)
#11 C:\www\flightFramework\FlightWiki\flight\Engine.php(154): flight\core\Dispatcher->run('start', Array)
#12 C:\www\flightFramework\FlightWiki\flight\Flight.php(125): flight\Engine->__call('start', Array)
#13 C:\www\flightFramework\FlightWiki\index.php(224): Flight::__callStatic('start', Array)
#14 {main}

To Reproduce
Steps to reproduce the behavior:

  1. Using the sample wiki application https://github.com/jonasgeiler/FlightWiki works on >= 8.0 and 8.5 but produces the above error on 7.4

Expected behavior
Should work on 7.4 or >=8.0

Screenshots
na

Environment (please complete the following information):

  • OS: Windows
  • chrome
  • PHP Version 7.4 nts x64
  • Using php server
  • Flight Version: downloaded the latest from git, not sure where to check the version?

Additional context
na

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions