mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-27 15:50:37 +00:00
fix: Mark Pygmentize::fetchVersion as public, but @internal
Follow up to ae07430
. The method needs to be public so that
WANObjectCache can call it from a callback, but we don't expect any
external callers.
Follows-Up: I424926d071e1cfd454a0c2d45a83693f41bdea55
Change-Id: Ia96d3132782435c693d2eaa77fd551fe9590b113
This commit is contained in:
parent
ae074306e8
commit
3bee59df01
|
@ -103,9 +103,10 @@ class Pygmentize {
|
|||
/**
|
||||
* Shell out to get installed pygments version
|
||||
*
|
||||
* @internal For use by WANObjectCache/BagOStuff only
|
||||
* @return string
|
||||
*/
|
||||
private static function fetchVersion(): string {
|
||||
public static function fetchVersion(): string {
|
||||
$result = self::boxedCommand()
|
||||
->params( self::getPath(), '-V' )
|
||||
->includeStderr()
|
||||
|
|
Loading…
Reference in a new issue