I believe a couple lines down in the case EditPage::AS_SUCCESS_UPDATE: case there is another instance where a null could be put into a value that should be a string in the hook. Would be something like
- $sectionanchor = $resultDetails['sectionanchor'] ?? null; + $sectionanchor = $resultDetails['sectionanchor'] ?? '';
For the part you fixed in the patch I believe that works though.