mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-17 16:51:35 +00:00
Scrutinizer Faulty Analysis (#2704)
Despite typehint, Scrutinizer assigns union type to a variable, resulting in subsequent faulty analysis of a method call invoked on that variable. Adding a bogus routine that will never actually be called to one module eliminates 8 Scrutinizer errors.
This commit is contained in:
@@ -1602,4 +1602,14 @@ class Spreadsheet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Silliness to mollify Scrutinizer.
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getSharedComponent(): Style
|
||||
{
|
||||
return new Style();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user