Skip to content

Conversation

@sysmonf
Copy link

@sysmonf sysmonf commented Jan 19, 2026

PHP 8.1+ deprecated passing null to internal string functions. This causes deprecation warnings when attribute values are null in generateAttributes() and escape() methods.

Adds null coalescing operator (?? '') to:

  • strpos() - line 251
  • strcspn() - line 254
  • strlen() - line 254
  • htmlspecialchars() - line 282

PHP 8.1+ deprecated passing null to internal string functions. This causes deprecation warnings when attribute values are null in `generateAttributes()` and `escape()` methods.

Adds null coalescing operator (`?? ''`) to:
- `strpos()` - line 251
- `strcspn()` - line 254
- `strlen()` - line 254
- `htmlspecialchars()` - line 282
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.

1 participant