Skip to content
Snippets Groups Projects

Issue #3383591: Use type-hinting on deprecation warnings for deleteRevision() introduced by mglaman/phpstan-drupal:1.2.0

Closed Issue #3383591: Use type-hinting on deprecation warnings for deleteRevision() introduced by mglaman/phpstan-drupal:1.2.0
Closed spokje requested to merge issue/drupal-3383591:3383591-use-type-hinting-on into 11.x
Files
5
@@ -140,6 +140,7 @@ public function getDescription() {
@@ -140,6 +140,7 @@ public function getDescription() {
*/
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
public function submitForm(array &$form, FormStateInterface $form_state) {
$entityTypeId = $this->revision->getEntityTypeId();
$entityTypeId = $this->revision->getEntityTypeId();
 
/** @var \Drupal\Core\Entity\RevisionableStorageInterface $entityStorage */
$entityStorage = $this->entityTypeManager->getStorage($entityTypeId);
$entityStorage = $this->entityTypeManager->getStorage($entityTypeId);
$entityStorage->deleteRevision($this->revision->getRevisionId());
$entityStorage->deleteRevision($this->revision->getRevisionId());
Loading