mirror of
https://github.com/danog/psalm.git
synced 2024-12-14 10:17:33 +01:00
641587635d
Quoting original issue (fixes #5761):
> Given this snippet ( https://psalm.dev/r/4d51eeab35 ):
>
> ```php
> <?php
>
> function invalidate_cache_for(string $path): void {
> opcache_invalidate($path);
> }
>
> invalidate_cache_for('foo');
> ```
>
> Psalm reports the `opcache_invalidate()` call as `UnusedFunctionCall`. I'm wondering if `opcache_invalidate()` is perhaps inferred as a pure function? The only reference to it that I could find is in
|
||
---|---|---|
.. | ||
CodeLocation | ||
Config | ||
Exception | ||
Internal | ||
Issue | ||
Node | ||
Plugin | ||
Progress | ||
Report | ||
SourceControl | ||
Storage | ||
Type | ||
Aliases.php | ||
Codebase.php | ||
CodeLocation.php | ||
Config.php | ||
Context.php | ||
DocComment.php | ||
ErrorBaseline.php | ||
FileBasedPluginAdapter.php | ||
FileManipulation.php | ||
FileSource.php | ||
IssueBuffer.php | ||
NodeTypeProvider.php | ||
PluginRegistrationSocket.php | ||
Report.php | ||
StatementsSource.php | ||
Type.php |