Skip to content

fix: correct typo arrya to array in getPlatforms cast (line 3557)#407

Open
rudidierar wants to merge 1 commit intoTestLinkOpenSourceTRMS:testlink_1_9_20_fixedfrom
rudidierar:testlink_1_9_20_fixed
Open

fix: correct typo arrya to array in getPlatforms cast (line 3557)#407
rudidierar wants to merge 1 commit intoTestLinkOpenSourceTRMS:testlink_1_9_20_fixedfrom
rudidierar:testlink_1_9_20_fixed

Conversation

@rudidierar
Copy link
Copy Markdown

#Description

Problem

A typo in 'lib/api/xmlrpc/v1/xmlrpc.class.php' at line 3557 causes a PHP parse error that makes the entire
XML-RPC API unavailable.

Error in Apache logs:**

'PHP Parse error: syntax error, unexpected '$this' (T_VARIABLE) in xmlrpc.class.php o line 3557'

Impact

This single typo makes the XML-RPC API return HTTP 500 for all requests, completely breaking any external
integration (pytest, CI/CD pipelines, etc...)

Tested on

-Testlink version: 1.9.20 [fixed]
-PHP 7.x / Apache 2.4.58 on Ubuntu

Copilot AI review requested due to automatic review settings May 6, 2026 14:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a PHP parse error in the XML-RPC API implementation by correcting an invalid type cast in addTestCaseToTestPlan(), restoring availability of the XML-RPC endpoint.

Changes:

  • Replace mistyped (arrya) cast with the valid (array) cast when retrieving platforms for a test plan.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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