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:
Bryan Davis 2022-07-15 19:09:06 -06:00
parent ae074306e8
commit 3bee59df01

View file

@ -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()