Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / config / check / PhabricatorFileinfoSetupCheck.php
blob9896daac2ccb28f68945c67f6aaab2782a57da60
1 <?php
3 final class PhabricatorFileinfoSetupCheck extends PhabricatorSetupCheck {
5 public function getDefaultGroup() {
6 return self::GROUP_OTHER;
9 protected function executeChecks() {
10 if (!extension_loaded('fileinfo')) {
11 $message = pht(
12 "The '%s' extension is not installed. Without '%s', ".
13 "support, this software may not be able to determine the MIME types ".
14 "of uploaded files.",
15 'fileinfo',
16 'fileinfo');
18 $this->newIssue('extension.fileinfo')
19 ->setName(pht("Missing '%s' Extension", 'fileinfo'))
20 ->setMessage($message);