You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`PHP Quality (phpcs)` reported 19 errors across 8 files. All are documentation
or formatting; none change behaviour. `./vendor/bin/phpcs --standard=phpcs.xml`
now exits 0 (was 2, then 1).
* 9x "Doc comment for parameter missing" — constructors that grew injected
collaborators (ObjectServiceInterface, OrganisationService,
OrganisationMapper, SchemaMapper, RegisterMapper, MetadataHydrationHandler,
RenameDutchCatalogDecisions) without their `@param` lines following.
Documented what each one is for rather than restating its type.
* 2x parameter-comment alignment in OrganisationMembersController — caused by
two orphaned continuation lines hanging off `$userManager`, describing a
parameter that no longer exists. Removed rather than realigned.
* 4x line-length — a `@return array{...}` shape in FederationMerger wrapped
onto three lines with its prose moved above it, and a `@spec` URL in
InitializeSettings split across three comment lines.
* 1x inline comment capitalisation.
* 1x "You must use /** style comments for a function comment" in
ReviewController: a prose note sat BETWEEN the attribute list and the
signature, where PHPCS reads any comment as the function's doc comment.
Moved into the docblock — nothing should sit between an attribute list and
the thing it annotates.
⚠️ I broke the file once while fixing that last one: the explanation I wrote
contained a literal `*/` inside backticks, which CLOSED the docblock early and
turned it into a parse error. `php -l` caught it immediately; rephrased. Worth
recording because the comment was ABOUT comment syntax, which is exactly when
this is easy to do.
## Verification, and its limit
Every touched file passes `php -l`, and the changes are comments only, so
parse-level is the relevant risk and it is covered. I could NOT run the test
suite: softwarecatalog's `tests/bootstrap.php` requires a Nextcloud server tree
and my container has none — it fatals in the bootstrap, before any test. Saying
so rather than implying a green suite.
THIS DOES NOT GREEN THE APP. phpstan, psalm, phpmd, all six PHPUnit cells, E2E
and Hydra Gates are still failing on this branch and are untouched here.
0 commit comments