Most PHP repositories contain JavaScript for the build, and the moment one of those scripts touches production it stops being tooling.
scripts/
build.mjs the asset build. everybody edits it.
sync-stock.mjs calls two APIs, writes to the database.
written in a hurry in March. no tests,
no log destination, no alert, no owner.
the question is not which language. it is whether this
has the same standards as everything else that writes to
the database.
The build script is fine unowned because its failure is loud and immediate. An operational script in the same directory inherits the assumption that it is tooling, and it is production code sitting in a folder nobody reviews — moving it somewhere with the same standards, or rewriting it in the main language for that reason alone, is a defensible use of an afternoon.