Run Rector on your code to see what it can do for you:

 
 final class SAPPosting extends AbstractPosting implements AccountingListAggregatedPostingSubmit
 {
-    protected function submitPosting(Posting $posting): void
-    {
-    }
-    
     public function submitPostingsToDateLimit(?DateTime $dt = null): void
     {
     }
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 0ee134 - released at 2026-09-03 23:51