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:
parent
c112802023
commit
6a349ccf5a
|
|
@ -1602,4 +1602,14 @@ class Spreadsheet
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Silliness to mollify Scrutinizer.
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getSharedComponent(): Style
|
||||
{
|
||||
return new Style();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue