# PHP - false positive oder parsing issue

**URL:** <https://community.sonarsource.com/t/php-false-positive-oder-parsing-issue/191993>\
**Category:** SonarQube Server / Community Build\
**Tags:** php, sonarqube\
**Created:** [November 24, 2026, 12:03pm UTC](https://community.sonarsource.com/t/php-false-positive-oder-parsing-issue/191993 "2026-11-24T12:03:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markluebbehuesen](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/markluebbehuesen/32/6729_2.png) [@markluebbehuesen](https://community.sonarsource.com/u/markluebbehuesen)\
**Post date:** [November 24, 2026, 12:03pm UTC](https://community.sonarsource.com/t/php-false-positive-oder-parsing-issue/191993/1 "2026-11-24T12:03:29Z")

</div>

Hi SonarSource team,

- **Sonarqube Developer Edition 2026.4.1**

I suspect this might be a **false positive or a parsing issue** related to PHP 8.5 syntax.

The issue `A parsing error occurred in this file` appears when using the new `clone()` function introduced in PHP 8.5.

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/d/c/dc4c493bf5cf04e7cf70d06f1ffdea323f366cea.png)

Could you please confirm whether the **PHP analyzer in SonarQube Developer Edition v2026.4.1 fully supports PHP 8.5 syntax** , particularly the new `clone()` function?

According to the following SonarSource Community announcement, PHP 8.5 support was introduced with SonarQube Community Build 25.11:

> [@SonarQube Community Build 25.11.0.114957 released](https://community.sonarsource.com/t/sonarqube-community-build-25-11-0-114957-released/151995):
>
> Hi all, Sonar is proud to announce the November release of the SonarQube Community Build 25.11.0.114957. This version includes support for Python 3.14, PHP 8.5 and other enhancements. This release also introduces a news widget, ensuring you’re among the first to learn about Sonar deliveries. Details are in the [Release Notes](https://docs.sonarsource.com/sonarqube-community-build/server-upgrade-and-maintenance/release-notes-and-notices/release-notes/). You’ll find all fixed tickets in the [full release notes](https://sonarsource.atlassian.net/issues/?jql=project%20%3D%2010139%20AND%20fixVersion%3D22533%20AND%20issuetype%20%21%3D%20Task). Please open new threads for any questions you have about these or other features. As a reminder, running SonarQub…

Does this support also apply to SonarQube Developer Edition v2026.4.1, or could this be a known issue with the PHP analyzer?

thanks,

Mark

---

<div class="post-metadata">

**Author:** ![luqman.shahid](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/luqman.shahid/32/78431_2.png) [@luqman.shahid](https://community.sonarsource.com/u/luqman.shahid)\
**Post date:** [November 25, 2026, 12:22pm UTC](https://community.sonarsource.com/t/php-false-positive-oder-parsing-issue/191993/2 "2026-11-25T12:22:16Z")

</div>

Hi,

Thanks for the report. We reproduced this: it’s a limitation in the PHP analyzer, not a false positive. It doesn’t yet parse the PHP 8.5 form of clone that takes extra arguments, such as clone($obj, […]), so the file fails with a parsing error. We’ve created a ticket and have a fix in progress.
