When using the maintenace script and multiversion/MWScript it gives a namespace error
We’re using the same multiversion setup provided by wikimedia (https://gerrit.wikimedia.org/r/plugins/gitiles/operations/mediawiki-config/+/refs/heads/master/multiversion/MWMultiVersion.php).
$ sudo php multiversion/MWScript.php extensions/ReplaceText/maintenance/replaceAll.php test Hello --dry-run
What happens?:
It gives me a fatal Error instead of expected results
PHP Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /extensions/ReplaceText/maintenance/replaceAll.php on line 31 Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /extensions/ReplaceText/maintenance/replaceAll.php on line 31
What should have happened instead?:
The maintenance script should've just excuted and gave me the result back
Software version (skip for WMF-hosted wikis like Wikipedia):
Version: ReplaceText(REL1_39) 1.7
MediaWiki 1.39.5
php 7.4.3
https://gerrit.wikimedia.org/g/operations/mediawiki-config/