Project60 / Project60/org.project60.banking

[PHP 8.1] Possible incompatibility: htmlentities()

Open
#386 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
22
Forks
45
Avg merge
3d 15h
Merged PRs (30d)
7

Description

FILE: org.project60.banking/CRM/Banking/Form/Configure.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------
 80 | ERROR | The default value of the $flags parameter for htmlentities() was changed from ENT_COMPAT to ENT_QUOTES
    |       | | ENT_SUBSTITUTE | ENT_HTML401 in PHP 8.1. For cross-version compatibility, the $flags parameter should
    |       | be explicitly set.
----------------------------------------------------------------------------------------------------------------------

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open org.project60.banking/CRM/Banking/Form/Configure.php and inspect line 80, where htmlentities() triggers the PHP 8.1 compatibility warning. Check the PHP 8.1 default change and determine the explicit flags needed for cross-version behavior. Done means the warning is resolved without changing the intended form configuration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.