* Additional parsing options
*/
private $parserOptions = [
- 'processing_instruction_handler' => '',
+ 'processing_instruction_handler' => null,
'external_dtd_handler' => '',
'dtd_handler' => '',
'require_safe_dtd' => true
$callbackReturn = false;
}
- if ( $checkIfSafe && isset( $parsedDTD['internal'] ) ) {
- if ( !$this->checkDTDIsSafe( $parsedDTD['internal'] ) ) {
- $this->wellFormed = false;
- }
+ if ( $checkIfSafe && isset( $parsedDTD['internal'] ) &&
+ !$this->checkDTDIsSafe( $parsedDTD['internal'] )
+ ) {
+ $this->wellFormed = false;
}
}