Repository navigation
fix(php): remove dead csvOutput() and deprecated curl_close() - #89
Merged
TheWitness merged 4 commits intoDec 5, 2026
Merged
Conversation
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
csvOutput() iterated over an undefined $test_data, had no callers and is not in npc.php's action allowlist, so it could never run. Removing it drops the only fputcsv() call instead of patching an unreachable line. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
TheWitness
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes #88
Summary
Controller::csvOutput()fromcontrollers/controller.php. It looped over an undefined$test_data, nothing in the plugin calls it, and it is not an action innpc.php's$allowed_modulesallowlist, so it could never run. It held the onlyfputcsv()call, which passed no$escapeargument (deprecated in PHP 8.4).curl_close()call fromtests/E2E/support/server.php. It has been a no-op since PHP 8.0 and PHP 8.5 deprecates it.Verification
tests/Unit/CsvEscapeTest.phpasserts the method is gone and the helper no longer callscurl_close(). It failed before the removal and passed after: 2 passed (2 assertions).