Skip to content

Use link instead of uses to avoid PHPUnit clash.#1042

Merged
markstory merged 1 commit into3.xfrom
3.x-uses-to-link
Jun 25, 2025
Merged

Use link instead of uses to avoid PHPUnit clash.#1042
markstory merged 1 commit into3.xfrom
3.x-uses-to-link

Conversation

@dereuromark
Copy link
Copy Markdown
Member

Refs dereuromark/cakephp-ide-helper#351

We are mainly adding it for traceability in apps, to follow to the code, and see if the code has a test.
The new PHPStorm and IDE versions want to convert @uses into

#[UsesFunction('execute')] 

PHPUnit attributes

To avoid this clash we should use @link. I checked and it works the same for PHPStorm at least.

@dereuromark dereuromark added this to the 3.x (CakePHP 5) milestone Jun 25, 2025
@markstory markstory merged commit a0d2b96 into 3.x Jun 25, 2025
8 of 9 checks passed
@markstory markstory deleted the 3.x-uses-to-link branch June 25, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants