diff --git a/scoper.inc.php b/scoper.inc.php index cc4a6cd23..d618d9f2d 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -92,6 +92,17 @@ return [ ); } + return $contents; + }, + function ($filePath, $prefix, $contents) { + if ($filePath === realpath(__DIR__ . '/src/psalm.php')) { + return str_replace( + '\\' . $prefix . '\\PSALM_VERSION', + 'PSALM_VERSION', + $contents + ); + } + return $contents; }, ],