Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package core_dml is not valid #64

Open
rlorenzo opened this issue Nov 16, 2020 · 1 comment
Open

Package core_dml is not valid #64

rlorenzo opened this issue Nov 16, 2020 · 1 comment

Comments

@rlorenzo
Copy link

The CiBot reports a false negative error of "Package core_dml is not valid" when running the PHPDocs style problems section.

See https://integration.moodle.org/job/Precheck%20remote%20branch/95931/artifact/work/smurf.html#phpdoc

However core_dml appears to be used throughout the lib/dml folder. See https://github.com/moodle/moodle/blob/master/lib/dml/moodle_database.php#L20

@stronk7
Copy link
Member

stronk7 commented May 28, 2023

Yeah,

they (dml, ddl, xmldb...) never have been a valid subsystem component. Hence, all those @pakage tags are incorrect but we have been keeping and using them. So, the checker is formally correct.

Recently we added both dml and ddl as valid core APIs (link). And I imagine that at some point, with the move to autoloaded classes... all them will end there, within the lib/classes/[dml|ddl] directories and within namespace \core\dml\moodle_database and friends.

Then, all those packages / categories will be fixed once and forever. In the mean time they will keep being (formally) incorrect.

Ciao :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants