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 parse error in PHP 7.0 #184

Closed
chrisleekr opened this issue May 18, 2019 · 8 comments
Closed

PHP parse error in PHP 7.0 #184

chrisleekr opened this issue May 18, 2019 · 8 comments
Assignees

Comments

@chrisleekr
Copy link

@chrisleekr chrisleekr commented May 18, 2019

With latest version PHPBU 5.2.0 onwards, it gets PHP parse error with one of library called tightenco in PHP 7.0.33.

PHP 7.0.33 (cli) (built: May  5 2019 13:16:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33, Copyright (c) 1999-2017, by Zend Technologies
    with SourceGuardian v11.2, Copyright (c) 2000-2018, by SourceGuardian Ltd.

[18-May-2019 23:17:04 Australia/Melbourne] PHP Warning:  Class 'Tightenco\Collect\Support\Arr' not found in phar:///home/user/backup/phpbu-5.2.1.phar/lib/tightenco/Collect/Support/alias.php on line 16
[18-May-2019 23:17:04 Australia/Melbourne] PHP Parse error:  syntax error, unexpected '=' in phar:///home/user/backup/phpbu-5.2.1.phar/lib/tightenco/Collect/Support/Arr.php on line 380

I have tested, version 5.1.11 is working with above PHP 7.0; however, after that version, it shows parsing error.

Can it be fixed?

@chrisleekr chrisleekr changed the title PHP Parse Error PHP parse error in PHP 7.0 May 18, 2019
@sebastianfeldmann sebastianfeldmann self-assigned this May 18, 2019
@sebastianfeldmann
Copy link
Owner

@sebastianfeldmann sebastianfeldmann commented May 18, 2019

Have you tried the lates version phpbu 5.2.2

@chrisleekr
Copy link
Author

@chrisleekr chrisleekr commented May 18, 2019

Yes, I have tried and occurs same error.

@sebastianfeldmann
Copy link
Owner

@sebastianfeldmann sebastianfeldmann commented May 18, 2019

I'll have a look at this ASAP

@chrisleekr
Copy link
Author

@chrisleekr chrisleekr commented May 19, 2019

Thanks, @sebastianfeldmann

:)

@sebastianfeldmann
Copy link
Owner

@sebastianfeldmann sebastianfeldmann commented May 20, 2019

I just released version 5.2.3
Now the PHAR should work with php 7.0 again.

The problem was a dependency changing the php requirement in a minor version 🎉

@chrisleekr
Copy link
Author

@chrisleekr chrisleekr commented May 20, 2019

Cool, let me test it.

@chrisleekr
Copy link
Author

@chrisleekr chrisleekr commented May 20, 2019

It works!.

Thanks @sebastianfeldmann

I will close the issue. :)

@chrisleekr chrisleekr closed this May 20, 2019
@sebastianfeldmann
Copy link
Owner

@sebastianfeldmann sebastianfeldmann commented May 20, 2019

Awesome, thanks for reporting the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants