Skip to content

editproject.php: Refactor row formatting not to use callables & echo - #1631

Open
bpfoley wants to merge 1 commit into
DistributedProofreaders:masterfrom
bpfoley:editproject-rm-callables
Open

editproject.php: Refactor row formatting not to use callables & echo#1631
bpfoley wants to merge 1 commit into
DistributedProofreaders:masterfrom
bpfoley:editproject-rm-callables

Conversation

@bpfoley

@bpfoley bpfoley commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

This allows us to put proper arguments and type hints on all the formatting functions rather than forcing them all through a common interface, and the direct calls allow PHPStan to do typechecking.

It also allows us to identify and remove a dead function.

This allows us to put proper arguments and type hints on all the
formatting functions rather than forcing them all through a common
interface, and the direct calls allow PHPStan to do typechecking.

It also allows us to identify and remove a dead function.
@bpfoley

bpfoley commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

Sandbox at https://www.pgdp.org/~bfoley/c.branch/editproject-rm-callables/tools/project_manager/editproject.php?action=edit&project=projectID4a5a34718a4a0

There's further cleanup that could be done in the formatting functions, but one step at a time.

@bpfoley
bpfoley requested a review from cpeel September 6, 2026 14:45
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