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

Error from version 1.6.0 with PHP 5.6 #135

Closed
yuryeuceda opened this issue Feb 17, 2022 · 1 comment
Closed

Error from version 1.6.0 with PHP 5.6 #135

yuryeuceda opened this issue Feb 17, 2022 · 1 comment

Comments

@yuryeuceda
Copy link

yuryeuceda commented Feb 17, 2022

Friend

I'm using PHP 5.6 and I update the active form widget with composer and I got 1.6.1 version and then I was having an error with ?? operator in file ActiveForm.php
I did some research and I found that operator ?? doesn't exist in PHP 5.6. So I downgrade the version to 1.5.9 and it works like a charm. (BTW I can't upgrade PHP from 5.6 to 7 due to company policies)

The problem is lines 216 and 217 as shown in picture
image

I would like if is possible to revert this change in order to keep compatibility with the widget for PHP 5.6 projects.

Thank you very much for your effort.

@kartik-v
Copy link
Owner

kartik-v commented Feb 17, 2022

Noting an enhancement for backward compatibility - its difficult though for future... as Yii framework itself is moving to PHP 7.x and beyond.

kartik-v added a commit that referenced this issue Feb 26, 2022
kartik-v added a commit that referenced this issue Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants