Multple errors in PHP 7.4
4lb0 opened this issue · comments
You're using the static return type and union type both features are only valid in PHP 8.
Here're some of the errors I'm getting.
ParseError : syntax error, unexpected '|', expecting ';' or '{'
/home/albo/projects/popo-factory/src/PopoFactory.php:110
/home/albo/projects/popo-factory/tests/PopoFactoryTest.php:48
ParseError : syntax error, unexpected 'static' (T_STATIC)
/home/albo/projects/popo-factory/tests/Popos/PersonDataFactory.php:12
/home/albo/projects/popo-factory/tests/PopoFactoryTest.php:63
Only PHP8 is supported atm