Skip to content

Conversation

@ahpang
Copy link
Contributor

@ahpang ahpang commented Oct 1, 2025

🐛 Bug Fix: PHP String Interpolation Deprecation Warning

Issue

Fixes PHP deprecation warning: Using ${var} in strings is deprecated, use {$var} instead

Changes

  • Replaced all instances of deprecated ${var} syntax with recommended {$var} syntax
  • Updated heredoc JavaScript block in DataTable.php
  • Fixed 6 instances of deprecated string interpolation

Files Changed

  • src/DataTable.php - Updated JavaScript heredoc block with column filtering logic

Compatibility

  • PHP 8.0+: Removes deprecation warnings
  • Backward Compatible: {$var} syntax works in all supported PHP versions (>=7.4)
  • Functionality: No behavior changes, only syntax update

Testing

  • Verified no more ${var} patterns exist in codebase
  • Confirmed all variables are properly interpolated with {$var} syntax
  • No functionality changes - only syntax modernization

Fixes deprecation warnings reported in GitHub issues.

- Fixed PHP deprecation warning about \ usage in heredoc strings
- Replaced all instances of \, \, and \
- Updated to use the recommended {\} syntax for PHP 8+ compatibility
- Addresses reported GitHub issue about string interpolation deprecation warnings
@ZAYEC77
Copy link
Contributor

ZAYEC77 commented Oct 1, 2025

@ahpang thank you for PR

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