1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-14 10:17:33 +01:00
psalm/src/Psalm
Marco Pivetta 641587635d
Fix #5761 by marking all opcache_ functions as impure, as they are affected by runtime/engine (#5762)
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 1a59e81808/dictionaries/CallMap.php, but no purity markers are there.
>
> I'd gladly fix these, if I could get a pointer to where purity is determined.
2021-05-13 21:18:00 -04:00
..
CodeLocation
Config Fix extra issue tests 2021-03-20 21:55:17 -04:00
Exception
Internal Fix #5761 by marking all opcache_ functions as impure, as they are affected by runtime/engine (#5762) 2021-05-13 21:18:00 -04:00
Issue Remove (and prevent) unused uses (#5704) 2021-05-03 17:22:15 -04:00
Node Introduce Virtual Nodes in order to differentiate real nodes in plugins (#5222) 2021-02-15 16:18:41 -05:00
Plugin Remove (and prevent) unused uses (#5704) 2021-05-03 17:22:15 -04:00
Progress
Report Link to SARIF JSON schema (#5718) 2021-05-05 21:47:36 -04:00
SourceControl
Storage Support enums (#5699) 2021-05-03 17:54:09 -04:00
Type callable-string is always a non-empty-string (#5741) 2021-05-10 11:47:32 -04:00
Aliases.php
Codebase.php Support enums (#5699) 2021-05-03 17:54:09 -04:00
CodeLocation.php Fix JSON reports with long UTF8 strings (#5300) 2021-03-01 11:23:21 -05:00
Config.php Support enums (#5699) 2021-05-03 17:54:09 -04:00
Context.php Allow phantom classes in instanceof expression (#5498) 2021-03-29 00:11:45 -04:00
DocComment.php Fix #5383 - prevent unsound use of new static for generics 2021-04-10 13:16:19 -04:00
ErrorBaseline.php
FileBasedPluginAdapter.php
FileManipulation.php
FileSource.php
IssueBuffer.php Make all mixed issues implement MixedIssue 2021-03-20 21:44:04 -04:00
NodeTypeProvider.php
PluginRegistrationSocket.php
Report.php
StatementsSource.php
Type.php combining never/empty twice gives never (#5756) 2021-05-12 18:46:37 -04:00