Skip to content

refactor: modernize syntax and simplify code#2371

Merged
remdex merged 1 commit into
LiveHelperChat:masterfrom
NullSablex:refactor-patch
Apr 8, 2026
Merged

refactor: modernize syntax and simplify code#2371
remdex merged 1 commit into
LiveHelperChat:masterfrom
NullSablex:refactor-patch

Conversation

@NullSablex

Copy link
Copy Markdown
Contributor

Some of the changes include replacing array() with [] and simplifying a few array_merge usages. Based on a question I asked on Discord, the project's minimum version is expected to be PHP 8.x, so I plan to introduce further improvements soon to take advantage of more modern syntax.

If this PR gets approved, I’ll continue applying these changes across other files — from what I’ve seen, there are around 999 files that still need these updates, along with a few additional improvements.

I would also like clarification regarding the minimum supported PHP version: should the project continue supporting PHP 8.x (8.0+), or would it be possible to raise it to PHP 8.3+ or even 8.4+, considering their longer support lifecycle and ongoing security updates?

Finally, since we’re already moving in this direction, I’d like to suggest that @remdex starts using [] instead of array() going forward. This will help keep the codebase consistent. For now, I’m not changing any logic — just focusing on this core cleanup of array() and array_merge, which are heavily used throughout the project.

…ing interpolation, remove PHP closing tags, and improve code style
@remdex remdex merged commit 197b44a into LiveHelperChat:master Apr 8, 2026
@NullSablex NullSablex deleted the refactor-patch branch April 8, 2026 11:15
@NullSablex NullSablex restored the refactor-patch branch April 8, 2026 13:39
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