theseer / Autoload

A lightweight php namespace aware autoload generator and phar archive builder
Other
388 stars 47 forks source link

Adopt, if needed, to PHP 8's T_NAME_FULLY_QUALIFIED, T_NAME_RELATIVE, and T_NAME_QUALIFIED tokens #95

Closed sebastianbergmann closed 4 years ago

sebastianbergmann commented 4 years ago
PerryRylance commented 3 years ago

I'm having issues using this library on a fresh install of XAMPP with PHP 8.0.0

The library is unable to parse this line

class Settings implements \IteratorAggregate

The message reports due to parse errors: Parse error while trying to process class definition (unexpected token in name).

Could this be related?

Removing the implements solves the issue, but obviously it's not ideal for my application

PerryRylance commented 3 years ago

I can confirm that updating to 1.26.0 solves this issue, assuming I'm referring to the same thing here

theseer commented 3 years ago

Yes, to use with PHP 8.0 - or later - you need at least 1.26.0 because of the changed tokenizing.