Skip to content

Conversation

@mmucklo
Copy link
Owner

@mmucklo mmucklo commented Jan 31, 2026

…ialize phpstan

Add parentheses to properly group OR conditions with AND operator.
This fixes potential logic errors and ensures PHP 8.1+ compatibility.
Symfony/yaml 7.x requires PHP >=8.2, but this project needs to support PHP 8.1.
Updated to allow symfony/yaml ^6.4 (requires PHP >=8.1) or ^7.2.
FILTER_FLAG_GLOBAL_RANGE constant was introduced in PHP 8.2.
Added a private class constant polyfill to support PHP 8.1.
FILTER_FLAG_GLOBAL_RANGE constant was introduced in PHP 8.2.
Created validateIpGlobalRange() method that:
- Uses FILTER_FLAG_GLOBAL_RANGE on PHP 8.2+
- Falls back to FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE on PHP 8.1

This provides equivalent functionality across all supported PHP versions.
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.

2 participants