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

Refactor: use PHP_VERSION_ID for integer comparison instead of PHP_VERSION #821

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

soanix
Copy link

@soanix soanix commented Jan 2, 2025

Replaced PHP_VERSION with PHP_VERSION_ID to ensure integer comparison when checking PHP version compatibility. This change prevents potential issues with string comparisons and ensures the condition is evaluated correctly.

Updated code:

  • if (PHP_VERSION >= 80400) -> if (PHP_VERSION_ID >= 80400)

This change affects the logic for handling the fgetcsv function depending on the PHP version.

…RSION

Replaced PHP_VERSION with PHP_VERSION_ID to ensure integer comparison
when checking PHP version compatibility. This change prevents potential
issues with string comparisons and ensures the condition is evaluated
correctly.

Updated code:
- `if (PHP_VERSION >= 80400)` -> `if (PHP_VERSION_ID >= 80400)`

This change affects the logic for handling the fgetcsv function depending
on the PHP version.
@spipu spipu merged commit 8d138f4 into spipu:master Jan 8, 2025
11 checks passed
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

Successfully merging this pull request may close these issues.

3 participants