Skip to content

Commit 5c6298d

Browse files
committed
Fix: Remove the system-Format ignore errors.
1 parent c640145 commit 5c6298d

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,6 @@
956956
'count' => 1,
957957
'path' => __DIR__ . '/system/Filters/Filters.php',
958958
];
959-
$ignoreErrors[] = [
960-
'message' => '#^Method CodeIgniter\\\\Format\\\\XMLFormatter\\:\\:arrayToXML\\(\\) has no return type specified\\.$#',
961-
'count' => 1,
962-
'path' => __DIR__ . '/system/Format/XMLFormatter.php',
963-
];
964959
$ignoreErrors[] = [
965960
'message' => '#^Method CodeIgniter\\\\HTTP\\\\CLIRequest\\:\\:parseCommand\\(\\) has no return type specified\\.$#',
966961
'count' => 1,

system/Format/XMLFormatter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function format($data)
5353
* @see http://www.codexworld.com/convert-array-to-xml-in-php/
5454
*
5555
* @param SimpleXMLElement $output
56+
*
57+
* @return void
5658
*/
5759
protected function arrayToXML(array $data, &$output)
5860
{

0 commit comments

Comments
 (0)