diff --git a/src/PhpSpreadsheet/Reader/BaseReader.php b/src/PhpSpreadsheet/Reader/BaseReader.php index f1e9b1d1..c191c3f8 100644 --- a/src/PhpSpreadsheet/Reader/BaseReader.php +++ b/src/PhpSpreadsheet/Reader/BaseReader.php @@ -215,6 +215,7 @@ abstract class BaseReader implements IReader if (property_exists($this, 'securityScanner')) { return $this->securityScanner; } + return null; } diff --git a/tests/PhpSpreadsheetTests/Reader/Security/XmlScannerTest.php b/tests/PhpSpreadsheetTests/Reader/Security/XmlScannerTest.php index 12ec9461..bc0eec6a 100644 --- a/tests/PhpSpreadsheetTests/Reader/Security/XmlScannerTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Security/XmlScannerTest.php @@ -3,8 +3,8 @@ namespace PhpOffice\PhpSpreadsheetTests\Reader\Security; use PhpOffice\PhpSpreadsheet\Reader\Security\XmlScanner; -use PhpOffice\PhpSpreadsheet\Reader\Xlsx; use PhpOffice\PhpSpreadsheet\Reader\Xls; +use PhpOffice\PhpSpreadsheet\Reader\Xlsx; use PHPUnit\Framework\TestCase; class XmlScannerTest extends TestCase @@ -80,6 +80,7 @@ class XmlScannerTest extends TestCase * @dataProvider providerValidXMLForCallback * * @param mixed $filename + * @param mixed $expectedResult */ public function testSecurityScanWithCallback($filename, $expectedResult) {