Skip to content

Commit

Permalink
Merge pull request #6131 from orklah/bindtextdomain
Browse files Browse the repository at this point in the history
makes bindtextdomain impure
  • Loading branch information
weirdan authored Jul 18, 2021
2 parents 53ae776 + f1269d2 commit b589525
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Psalm/Internal/Codebase/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@ public function isCallMapFunctionPure(
// opcache
'opcache_compile_file', 'opcache_get_configuration', 'opcache_get_status',
'opcache_invalidate', 'opcache_is_script_cached', 'opcache_reset',

//gettext
'bindtextdomain',
];

if (\in_array(strtolower($function_id), $impure_functions, true)) {
Expand Down

0 comments on commit b589525

Please sign in to comment.