Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP error in phar #296

Closed
MarceauKa opened this issue Jul 28, 2022 · 6 comments
Closed

PHP error in phar #296

MarceauKa opened this issue Jul 28, 2022 · 6 comments

Comments

@MarceauKa
Copy link

Hi, after removing then reinstalling takeout I got this error when I try to run takeout

Parse error: syntax error, unexpected token ")" in phar:///Users/username/.composer/vendor/tightenco/takeout/builds/takeout/vendor/symfony/finder/Finder.php on line 588

Takeout: 2.1
Composer: 2.3.5
PHP: 8.0.21

@mattstauffer
Copy link
Member

Thanks! Closed in 2.1.1

@subdesign
Copy link

Hi, I have the same error, but I have 2.2.0 installed!
PHP 8.0.19
Comp: 2.3.5

Screenshot 2022-12-02 at 11 15 47

@therobfonz
Copy link
Contributor

Also seeing this same error on 2.3.0 and PHP 8.0.26.

Screenshot 2023-01-03 at 6 05 02 AM

@tonysm tonysm reopened this Jan 3, 2023
@tonysm
Copy link
Contributor

tonysm commented Jan 3, 2023

Taking a look at this...

@tonysm
Copy link
Contributor

tonysm commented Jan 3, 2023

So, packagist says we support PHP 8.0. To do that, we need to be on that version when developing, or at least at the time we're building the phar file and also when installing the Composer dependencies. Installing the Composer dependencies from a higher PHP version may get dependencies that are not compatible with PHP 8.0.

@tonysm
Copy link
Contributor

tonysm commented Jan 3, 2023

Just tagged a new patch release v2.3.1 with the fix for this.

@tonysm tonysm closed this as completed Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants