change error identifier

This commit is contained in:
Dylan K. Taylor
2025-03-09 00:54:39 +00:00
parent 2291546610
commit 95284bc9de
2 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ final class DisallowDynamicNewRule implements Rule{
return [
RuleErrorBuilder::message("Dynamic new is not allowed.")
->tip("For factories, use closures instead. Closures can implement custom logic, are statically analyzable, and don't restrict the constructor signature.")
->identifier("pocketmine.new.noDynamic")
->identifier("pocketmine.new.dynamic")
->build()
];
}