Skip to content

PHP api: an attribute whose name merely starts with Route/Get/Post/Put/Delete/Patch/ApiResource counts as an API attribute #9446

In progress

Description

@squid-protocol

Found by the SOP-002 gap-cell decoy suite (protocol SOP-002-v1, epic #8863). Locked in as xfail(strict=True); no engine change in that PR.

Construct: the api rule ends #\[(?:ApiResource|Route|Get|Post|Put|Delete|Patch)[^\]]*\] with no boundary after the name, so a different attribute that begins with one of those words matches.

Snippets (each expected 0, actual 1):

<?php
#[Getter]
#[Posted]
#[RouteHelper]
#[ApiResourceX]

(#[Get("/x")], #[Route("/x")] and #[Delete] correctly count.)

Locked in tests/decoys/test_decoy_php.py::test_php_api_attribute_name_boundary.

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions