Problem/Motivation
The class \Drupal\private_message\Form\PrivateMessageDeleteForm is marked as internal.
Overriding a form is such a common practice... and in this case there is not a good reason that I can foresee why this is the only class in the module that is marked as internal.
When I try to extend it, I have an error in phpstan validation:
Class Drupal\mymodule\Form\PrivateMessageDeleteForm extends @internal class Drupal\private_message\Form\PrivateMessageDeleteForm.
Proposed resolution
Remove the internal tag.
Issue fork private_message-3491271
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dxvargas commentedI've created a MR to remove the tag, please review.
Comment #4
chandansha commentedI have tested MR164. Now Tag is removed and also phpstan pipeline is successfully pass.
I move it to RTBC.
THANKS!!
Comment #8
claudiu.cristeaThank you for contribution.
Comment #10
claudiu.cristea