Skip to content

Separate API endpoints into individual namespaces#1325

Merged
josephsnyder merged 8 commits into
masterfrom
style_and_static
Mar 15, 2023
Merged

Separate API endpoints into individual namespaces#1325
josephsnyder merged 8 commits into
masterfrom
style_and_static

Conversation

@williamjallen
Copy link
Copy Markdown
Collaborator

@williamjallen williamjallen commented Mar 13, 2023

#1314 did not properly handle multiple functions with the same name in the global namespace. Depending on the order in which PHPStan analyzed files, a greater or lesser number of errors could be generated, which caused the CI to be flaky.

This PR separates each of the API endpoints into individual namespaces such that function names such as rest_post no longer pollute the global namespace, and do not cause PHPStan to return faulty results.

Alongside the required changes, I have also made a number of smaller changes along the way, including dead code removal and typing cleanups.

@williamjallen williamjallen marked this pull request as draft March 13, 2023 21:30
@williamjallen williamjallen marked this pull request as ready for review March 14, 2023 20:54
@josephsnyder josephsnyder merged commit 0e545d3 into master Mar 15, 2023
@williamjallen williamjallen deleted the style_and_static branch March 15, 2023 19:30
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.

3 participants