@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Fix additional "xprintf()"-class static parameter lint errors

Summary: Ref T13577. After the fix in D21453, lint identifies additional static errors in Phabricator; fix them.

Test Plan: Ran `arc lint`; these messages are essentially all very obscure.

Subscribers: hach-que, yelirekim, PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13577

Differential Revision: https://secure.phabricator.com/D21457

+30 -14
+2 -1
resources/sql/autopatches/20150602.mlist.2.php
··· 40 40 if (!$username_okay) { 41 41 echo pht( 42 42 'Failed to migrate mailing list "%s": unable to generate a unique '. 43 - 'username for it.')."\n"; 43 + 'username for it.', 44 + $name)."\n"; 44 45 continue; 45 46 } 46 47
+2 -1
src/applications/differential/management/PhabricatorDifferentialRebuildChangesetsWorkflow.php
··· 36 36 throw new PhutilArgumentUsageException( 37 37 pht( 38 38 'Object "%s" specified by "--revision" must be a Differential '. 39 - 'revision.')); 39 + 'revision.', 40 + $revision_identifier)); 40 41 } 41 42 } else { 42 43 $revision = id(new DifferentialRevisionQuery())
+2 -1
src/applications/differential/xaction/DifferentialRevisionRepositoryTransaction.php
··· 84 84 $errors[] = $this->newInvalidError( 85 85 pht( 86 86 'Repository "%s" is not a valid repository, or you do not have '. 87 - 'permission to view it.'), 87 + 'permission to view it.', 88 + $new_value), 88 89 $xaction); 89 90 } 90 91 }
+1
src/applications/fact/chart/PhabricatorChartFunctionArgumentParser.php
··· 43 43 pht( 44 44 'Chart function "%s" emitted an argument specification ("%s") with '. 45 45 'no type. Each argument specification must have a valid type.', 46 + $this->getFunctionArgumentSignature(), 46 47 $name)); 47 48 } 48 49
+1
src/applications/harbormaster/management/HarbormasterManagementPublishWorkflow.php
··· 54 54 pht( 55 55 'Object "%s" is not a HarbormasterBuildable (it is a "%s"). '. 56 56 'Name one or more buildables to publish, like "B123".', 57 + $name, 57 58 get_class($result))); 58 59 } 59 60 }
+2
src/applications/harbormaster/storage/build/HarbormasterBuildLog.php
··· 177 177 pht( 178 178 'Attempt to load log bytes (%d - %d) failed: failed to '. 179 179 'load a single contiguous range. Actual ranges: %s.', 180 + $offset, 181 + $end, 180 182 implode('; ', $display_ranges))); 181 183 } 182 184
+1 -2
src/applications/maniphest/constants/ManiphestTaskPriority.php
··· 199 199 throw new Exception( 200 200 pht( 201 201 'Configuration is not valid. Maniphest priority configurations '. 202 - 'must be dictionaries.', 203 - $config)); 202 + 'must be dictionaries.')); 204 203 } 205 204 206 205 $all_keywords = array();
+1
src/applications/metamta/adapter/PhabricatorMailAdapter.php
··· 65 65 pht( 66 66 'Adapter ("%s") is configured for medium "%s", but this is not '. 67 67 'a supported delivery medium. Supported media are: %s.', 68 + get_class($this), 68 69 $medium, 69 70 implode(', ', $native_map))); 70 71 }
+3 -1
src/applications/notification/config/PhabricatorNotificationServersConfigType.php
··· 98 98 'Notification server configuration describes an invalid host '. 99 99 '("%s", at index "%s"). This is an "admin" service but it has a '. 100 100 '"path" property. This property is only valid for "client" '. 101 - 'services.')); 101 + 'services.', 102 + $host, 103 + $index)); 102 104 } 103 105 104 106 // We can't guarantee that you didn't just give the same host two
+2 -1
src/applications/nuance/github/__tests__/NuanceGitHubRawEventTestCase.php
··· 85 85 throw new Exception( 86 86 pht( 87 87 'Expected test file "%s" to contain exactly two sections, '. 88 - 'but it has more than two sections.')); 88 + 'but it has more than two sections.', 89 + $file)); 89 90 } 90 91 91 92 list($input, $expect) = $parts;
-1
src/applications/phragment/controller/PhragmentRevertController.php
··· 71 71 ->appendParagraph(pht( 72 72 'Reverting this fragment to version %d will create a new version of '. 73 73 'the fragment. It will not delete any version history.', 74 - $version->getSequence(), 75 74 $version->getSequence())); 76 75 return id(new AphrontDialogResponse())->setDialog($dialog); 77 76 }
+1 -2
src/applications/policy/storage/PhabricatorPolicy.php
··· 266 266 return pht( 267 267 'Members of a particular project can take this action. (You '. 268 268 'can not see this object, so the name of this project is '. 269 - 'restricted.)', 270 - $handle->getFullName()); 269 + 'restricted.)'); 271 270 } else if ($type == PhabricatorPeopleUserPHIDType::TYPECONST) { 272 271 return pht( 273 272 '%s can take this action.',
+1
src/applications/project/icon/PhabricatorProjectIconSet.php
··· 224 224 'Icon key "%s" is not a valid icon key. Icon keys must be 1-32 '. 225 225 'characters long and contain only lowercase letters. For example, '. 226 226 '"%s" and "%s" are reasonable keys.', 227 + $value['key'], 227 228 'tag', 228 229 'group')); 229 230 }
+3 -1
src/applications/search/ferret/function/FerretSearchFunction.php
··· 17 17 pht( 18 18 'Ferret search engine function name ("%s") is invalid. Function '. 19 19 'names must be nonempty and may only contain latin letters and '. 20 - 'hyphens.')); 20 + 'hyphens.', 21 + $function_name)); 21 22 } 22 23 } 23 24 ··· 77 78 'Ferret function "%s" is specified with a denormalized name. '. 78 79 'Instead, specify the function using the normalized '. 79 80 'function name ("%s").', 81 + $function_name, 80 82 $normal_name)); 81 83 } 82 84
+3 -1
src/applications/transactions/editengine/PhabricatorEditEngine.php
··· 2548 2548 pht( 2549 2549 'Extension "%s" defines a bulk edit group with the same key '. 2550 2550 '("%s") as the main editor or another extension. Each bulk '. 2551 - 'edit group must have a unique key.')); 2551 + 'edit group must have a unique key.', 2552 + get_class($extension), 2553 + $key)); 2552 2554 } 2553 2555 2554 2556 $map[$key] = $group;
+2 -1
src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php
··· 204 204 pht( 205 205 'Subtype configuration is invalid: subtype with key "%s" '. 206 206 'specifies both child subtypes and child forms. Specify one '. 207 - 'or the other, but not both.')); 207 + 'or the other, but not both.', 208 + $key)); 208 209 } 209 210 } 210 211
+2
src/infrastructure/cluster/PhabricatorDatabaseRefParser.php
··· 205 205 'Database "%s" is configured as a replica and specifies a '. 206 206 'master ("%s"), but that master is not a valid master. Valid '. 207 207 'masters are: %s.', 208 + $ref->getRefKey(), 209 + $master_key, 208 210 implode(', ', $master_keys))); 209 211 } 210 212
+1 -1
src/infrastructure/customfield/datasource/PhabricatorCustomFieldApplicationSearchNoneFunctionDatasource.php
··· 22 22 'summary' => pht('Find results with no value.'), 23 23 'description' => pht( 24 24 "This function includes results which have no value. Use a query ". 25 - "like this to find results with no value:\n\n%s\n\n", 25 + "like this to find results with no value:\n\n%s\n\n". 26 26 'If you combine this function with other constraints, results '. 27 27 'which have no value or the specified values will be returned.', 28 28 '> any()'),