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:
oleibman 2022-03-21 14:29:57 -07:00 committed by GitHub
parent c112802023
commit 6a349ccf5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -1602,4 +1602,14 @@ class Spreadsheet
}
}
}
/**
* Silliness to mollify Scrutinizer.
*
* @codeCoverageIgnore
*/
public function getSharedComponent(): Style
{
return new Style();
}
}