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

fix: Initialization of state variables in list context currently forbidden (perl version < 5.28) #7058

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

stephanegigandet
Copy link
Contributor

We use Perl 5.24 in production today, and state arrays and hashes can't be initialized:

off@off1:/srv/off-pro/scripts$ perl ../lib/startup_apache2.pl
Initialization of state variables in list context currently forbidden at ProductOpener/Display.pm line 10153, near ");"

Reverting to a normal variable for now.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@alexgarel alexgarel merged commit 44b9fc1 into main Jul 13, 2022
@alexgarel alexgarel deleted the state branch July 13, 2022 10:22
LandonPattison pushed a commit that referenced this pull request Jul 24, 2022
…idden (perl version < 5.28) (#7058)

fix: Initialization of state variables in list context currently forbidden

Co-authored-by: off <off@openfoodfacts.org>
LandonPattison pushed a commit that referenced this pull request Jul 25, 2022
…idden (perl version < 5.28) (#7058)

fix: Initialization of state variables in list context currently forbidden

Co-authored-by: off <off@openfoodfacts.org>
LandonPattison pushed a commit that referenced this pull request Jul 25, 2022
…idden (perl version < 5.28) (#7058)

fix: Initialization of state variables in list context currently forbidden

Co-authored-by: off <off@openfoodfacts.org>
LandonPattison pushed a commit that referenced this pull request Jul 25, 2022
…idden (perl version < 5.28) (#7058)

fix: Initialization of state variables in list context currently forbidden

Co-authored-by: off <off@openfoodfacts.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants