Skip to content

A3: Curly-brace string offsets are a parse error on PHP 8 #4

Open

Description

@caseysoftware

strtoupper($d{0}) uses curly-brace offset syntax, removed in PHP 8. Both tab pages ("Company working time" and "User vacations/holidays") fail to compile.

Files: holiday.php L300, holiday_settings.php L341

Fix: $d{0} → $d[0] (or mb_substr($d, 0, 1) for non-ASCII day names).

Evidence: php -l fails on PHP 8.3.6.
Effort: XS

Part of #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions