Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/303235
Change subject: Change explicit class to self in AutoloadGenerator ...................................................................... Change explicit class to self in AutoloadGenerator Change-Id: I9d91ca42dbf41604639fff2ca00efa6fb262cb3d Follow-up: I3a426b92892f4c00cab33a13f6a717751120367c --- M includes/utils/AutoloadGenerator.php 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/35/303235/1 diff --git a/includes/utils/AutoloadGenerator.php b/includes/utils/AutoloadGenerator.php index de52cd9..2ebc9ed 100644 --- a/includes/utils/AutoloadGenerator.php +++ b/includes/utils/AutoloadGenerator.php @@ -229,7 +229,7 @@ $fileinfo = $this->getTargetFileinfo(); - if ( $fileinfo['type'] === AutoloadGenerator::FILETYPE_JSON ) { + if ( $fileinfo['type'] === self::FILETYPE_JSON ) { return $this->generateJsonAutoload( $fileinfo['filename'] ); } else { return $this->generatePHPAutoload( $commandName, $fileinfo['filename'] ); @@ -247,17 +247,17 @@ public function getTargetFileinfo() { $fileinfo = [ 'filename' => $this->basepath . '/autoload.php', - 'type' => AutoloadGenerator::FILETYPE_PHP + 'type' => self::FILETYPE_PHP ]; if ( file_exists( $this->basepath . '/extension.json' ) ) { $fileinfo = [ 'filename' => $this->basepath . '/extension.json', - 'type' => AutoloadGenerator::FILETYPE_JSON + 'type' => self::FILETYPE_JSON ]; } elseif ( file_exists( $this->basepath . '/skin.json' ) ) { $fileinfo = [ 'filename' => $this->basepath . '/skin.json', - 'type' => AutoloadGenerator::FILETYPE_JSON + 'type' => self::FILETYPE_JSON ]; } -- To view, visit https://gerrit.wikimedia.org/r/303235 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9d91ca42dbf41604639fff2ca00efa6fb262cb3d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits