@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
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Replace usages of `wild` with `mixed` or more specific type.

Summary:
The doc type `wild` isn't a recognized phpstan or phpdoc type. The proper type
name for `wild` is `mixed`. For almost every case, it was nontrivial to
identify a more precise type, and so I simply replaced `wild` with `mixed`. In
some cases it was relatively easy and in those cases, either a concrete type or
an inline type alias was used instead of `mixed`.

Test Plan: Run phpstan before and after. See fewer or more specific errors, after.

Reviewers: aklapper, O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: mainframe98, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26344

amy bones 893ce653 8f0f848e

+103 -92
+7 -8
src/aphront/AphrontRequest.php
··· 724 724 /** 725 725 * Get request data other than "magic" parameters. 726 726 * 727 - * @return array<string, wild> Request data, with magic filtered out. 727 + * @return array<string, mixed> Request data, with magic filtered out. 728 728 */ 729 729 public function getPassthroughRequestData($include_quicksand = false) { 730 730 $data = $this->getRequestData(); ··· 748 748 * into a list of key-value pairs suitable for submitting via HTTP request 749 749 * (with arrays flattened). 750 750 * 751 - * @param array<string, wild> $data Data to flatten. 751 + * @param array<string, mixed> $data Data to flatten. 752 752 * @return array<string, string> Flat data suitable for inclusion in an HTTP 753 753 * request. 754 754 */ ··· 778 778 * and looks up the appropriate value in `$_SERVER` (in this case, 779 779 * `"HTTP_ACCEPT_ENCODING"`). 780 780 * 781 - * @param string $name Canonical header name, like 782 - `"Accept-Encoding"`. 783 - * @param wild $default (optional) Default value to return if 784 - header is not present. 785 - * @param array $data (optional) Read this instead of `$_SERVER`. 786 - * @return string|wild Header value if present, or `$default` if not. 781 + * @param string $name Canonical header name, like `"Accept-Encoding"`. 782 + * @param mixed $default (optional) Default value to return if 783 + * header is not present. 784 + * @param array $data (optional) Read this instead of `$_SERVER`. 785 + * @return mixed Header value if present, or `$default` if not. 787 786 */ 788 787 public static function getHTTPHeader($name, $default = null, $data = null) { 789 788 // PHP mangles HTTP headers by uppercasing them and replacing hyphens with
+5 -5
src/aphront/configuration/AphrontApplicationConfiguration.php
··· 563 563 /** 564 564 * Tests if a response is of a valid type. 565 565 * 566 - * @param wild $response Supposedly valid response. 566 + * @param mixed $response Supposedly valid response. 567 567 * @return bool True if the object is of a valid type. 568 568 * @task response 569 569 */ ··· 586 586 * 587 587 * @param AphrontController $controller Controller which returned the 588 588 * response. 589 - * @param wild $response Supposedly valid response. 589 + * @param mixed $response Supposedly valid response. 590 590 * @return void 591 591 * @task response 592 592 */ ··· 616 616 * 617 617 * @param AphrontResponseProducerInterface $producer Object which produced 618 618 * this response. 619 - * @param wild $response Supposedly valid response. 619 + * @param mixed $response Supposedly valid response. 620 620 * @return void 621 621 * @task response 622 622 */ ··· 646 646 * 647 647 * @param AphrontRequestExceptionHandler $handler Object which produced this 648 648 * response. 649 - * @param wild $response Supposedly valid response. 649 + * @param mixed $response Supposedly valid response. 650 650 * @return void 651 651 * @task response 652 652 */ ··· 741 741 * @{class:AphrontRequestExceptionHandler}. 742 742 * 743 743 * @param Throwable $throwable Exception which needs to be handled. 744 - * @return wild Response or response producer, or null if no available 744 + * @return mixed Response or response producer, or null if no available 745 745 * handler can produce a response. 746 746 * @task exception 747 747 */
+5 -5
src/aphront/httpparametertype/AphrontHTTPParameterType.php
··· 76 76 * 77 77 * @param AphrontRequest $request The incoming request. 78 78 * @param string $key The key to examine. 79 - * @return wild Value, or default if value is not present. 79 + * @return mixed Value, or default if value is not present. 80 80 * @task read 81 81 */ 82 82 final public function getValue(AphrontRequest $request, $key) { ··· 92 92 /** 93 93 * Get the default value for this parameter type. 94 94 * 95 - * @return wild Default value for this type. 95 + * @return mixed Default value for this type. 96 96 * @task read 97 97 */ 98 98 final public function getDefaultValue() { ··· 192 192 * @param AphrontHTTPParameterType $type The other type. 193 193 * @param AphrontRequest $request Incoming request. 194 194 * @param string $key Key to examine. 195 - * @return wild Parsed value. 195 + * @return mixed Parsed value. 196 196 * @task util 197 197 */ 198 198 final protected function getValueWithType( ··· 255 255 * 256 256 * @param AphrontRequest $request The incoming request. 257 257 * @param string $key The key to examine. 258 - * @return wild Parsed value. 258 + * @return mixed Parsed value. 259 259 * @task impl 260 260 */ 261 261 abstract protected function getParameterValue(AphrontRequest $request, $key); ··· 299 299 * 300 300 * See @{method:getDefaultValue}. If unspecified, the default is `null`. 301 301 * 302 - * @return wild|null Default value (null if unspecified). 302 + * @return mixed Default value (null if unspecified). 303 303 * @task impl 304 304 */ 305 305 protected function getParameterDefault() {
+1 -1
src/applications/calendar/storage/PhabricatorCalendarEventInvitee.php
··· 72 72 /** 73 73 * Import the invitee availability from the Time Transparency 74 74 * field in an ICS calendar event as per RFC 5545 section 3.8.2.7. 75 - * @param wild $time_transp Time transparency like 'OPAQUE' 75 + * @param mixed $time_transp Time transparency like 'OPAQUE' 76 76 * or 'TRANSPARENT' or null. 77 77 * @return void 78 78 */
+1 -1
src/applications/conduit/controller/PhabricatorConduitAPIController.php
··· 170 170 * 171 171 * @param ConduitAPIRequest $api_request Request being executed. 172 172 * @param array $metadata Dictionary of request metadata. 173 - * @param wild $method 173 + * @param string $method 174 174 * @return null|array Null to indicate successful authentication, or 175 175 * an error code and error message pair. 176 176 */
+1 -1
src/applications/config/json/PhabricatorConfigJSON.php
··· 4 4 /** 5 5 * Properly format a JSON value. 6 6 * 7 - * @param wild $value Any value, but should be a raw value, not a string of 7 + * @param mixed $value Any value, but should be a raw value, not a string of 8 8 * JSON. 9 9 * @return string 10 10 */
+2 -2
src/applications/config/option/PhabricatorApplicationConfigOptions.php
··· 70 70 * 71 71 * @param PhabricatorConfigOption $option Option being rendered. 72 72 * @param AphrontRequest $request Active request. 73 - * @return wild|null Additional contextual description 74 - * information. 73 + * @return PhutilSafeHTMLProducerInterface|array|null Additional contextual 74 + * description information. 75 75 */ 76 76 public function renderContextualDescription( 77 77 PhabricatorConfigOption $option,
+1 -1
src/applications/differential/parser/DifferentialLineAdjustmentMap.php
··· 60 60 * 61 61 * @param int $line Line to map 62 62 * @param bool $is_end True to map it as the end of a range. 63 - * @return wild Spooky magic. 63 + * @return array{bool,int,int} Tuple of (deleted, offset, line). 64 64 */ 65 65 public function mapLine($line, $is_end) { 66 66 $nmap = $this->getNearestMap();
+1 -1
src/applications/differential/render/DifferentialChangesetHTMLRenderer.php
··· 606 606 /** 607 607 * Build the prefixes for line IDs used to track inline comments. 608 608 * 609 - * @return array<wild, wild> Left and right prefixes. 609 + * @return array{string|null,string|null} Left and right prefixes. 610 610 */ 611 611 protected function getLineIDPrefixes() { 612 612 // These look like "C123NL45", which means the line is line 45 on the
+1 -1
src/applications/drydock/worker/DrydockLeaseUpdateWorker.php
··· 817 817 * object we expect. 818 818 * 819 819 * @param DrydockBlueprint $blueprint Blueprint which built the resource. 820 - * @param wild $resource Thing which the blueprint claims is a valid 820 + * @param mixed $resource Thing which the blueprint claims is a valid 821 821 * resource. 822 822 * @param DrydockLease $lease Lease the resource was allocated for. 823 823 * @return void
+1 -1
src/applications/files/storage/PhabricatorFile.php
··· 1531 1531 * This method is called both when creating a file from fresh data, and 1532 1532 * when creating a new file which reuses existing storage. 1533 1533 * 1534 - * @param map<string, wild> $params Bag of parameters, see 1534 + * @param map<string, mixed> $params Bag of parameters, see 1535 1535 * @{class:PhabricatorFile} for documentation. 1536 1536 * @return $this 1537 1537 */
+4 -2
src/applications/metamta/replyhandler/PhabricatorMailReplyHandler.php
··· 334 334 * 335 335 * @param list<string> $to List of To PHIDs. 336 336 * @param list<string> $cc List of CC PHIDs. 337 - * @return array<wild, wild> Maps from PHIDs to users. 337 + * @return array{array<string, PhabricatorUser>, 338 + * array<string, PhabricatorUser>} Maps from PHIDs to users. 338 339 */ 339 340 private function loadRecipientUsers(array $to, array $cc) { 340 341 $to_result = array(); ··· 372 373 * 373 374 * @param map<string, PhabricatorUser> $to Map of "To" users. 374 375 * @param map<string, PhabricatorUser> $cc Map of "CC" users. 375 - * @return array<wild, wild> Filtered user maps. 376 + * @return array{array<string, PhabricatorUser>, 377 + * array<string, PhabricatorUser>} Filtered user maps. 376 378 */ 377 379 private function filterRecipientUsers(array $to, array $cc) { 378 380 $to_result = array();
+2 -2
src/applications/people/storage/PhabricatorUser.php
··· 431 431 * Test if a given setting is set to a particular value. 432 432 * 433 433 * @param string $key Setting key constant. 434 - * @param wild $value Value to compare. 434 + * @param mixed $value Value to compare. 435 435 * @return bool True if the setting has the specified value. 436 436 * @task settings 437 437 */ ··· 783 783 /** 784 784 * Get cached availability, if present. 785 785 * 786 - * @return wild|null Cache data, or null if no cache is available. 786 + * @return array|null Cache data, or null if no cache is available. 787 787 * @task availability 788 788 */ 789 789 public function getAvailabilityCache() {
+1 -1
src/applications/phid/type/PhabricatorPHIDType.php
··· 69 69 * 70 70 * @param PhabricatorObjectQuery $query Query being executed. 71 71 * @param list<string> $phids PHIDs to load. 72 - * @return list<wild> Corresponding objects. 72 + * @return array<object> Corresponding objects. 73 73 */ 74 74 public function loadObjects( 75 75 PhabricatorObjectQuery $query,
+1 -1
src/applications/policy/interface/PhabricatorExtendedPolicyInterface.php
··· 64 64 * 65 65 * @param string $capability Constant of the capability being tested. 66 66 * @param PhabricatorUser $viewer Viewer whose capabilities are being tested. 67 - * @return list<array<wild, wild>> List of extended policies. 67 + * @return array<array<scalar, mixed>> List of extended policies. 68 68 */ 69 69 public function getExtendedPolicy($capability, PhabricatorUser $viewer); 70 70
+1 -1
src/applications/policy/rule/PhabricatorPolicyRule.php
··· 122 122 * 123 123 * @param PhabricatorPolicyInterface $object Object to pass a hint about. 124 124 * @param PhabricatorPolicyRule $rule Rule to pass hint to. 125 - * @param wild $hint Hint. 125 + * @param mixed $hint Hint. 126 126 * @return void 127 127 */ 128 128 public static function passTransactionHintToRule(
+1 -1
src/applications/policy/storage/PhabricatorPolicy.php
··· 349 349 * to apply policy filters efficiently. 350 350 * 351 351 * @param class-string $rule_class Policy rule classname. 352 - * @return list<wild> List of values used in this policy. 352 + * @return array<mixed> List of values used in this policy. 353 353 */ 354 354 public function getCustomRuleValues($rule_class) { 355 355 $values = array();
+1 -1
src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php
··· 343 343 * 344 344 * @param bool $consume (optional) Pass `true` to consume these messages, so 345 345 * the process will not see them again. 346 - * @return list<wild> Pending update messages. 346 + * @return array<PhabricatorRepositoryStatusMessage> Pending update messages. 347 347 * 348 348 * @task pull 349 349 */
+2 -2
src/applications/repository/storage/PhabricatorRepository.php
··· 1158 1158 /** 1159 1159 * Get a parsed object representation of the repository's remote URI.. 1160 1160 * 1161 - * @return wild A @{class@arcanist:PhutilURI}. 1161 + * @return PhutilURI A @{class@arcanist:PhutilURI}. 1162 1162 * @task uri 1163 1163 */ 1164 1164 public function getRemoteURIObject() { ··· 1788 1788 * services, returning raw URIs. 1789 1789 * 1790 1790 * @param PhabricatorUser $viewer Viewing user. 1791 - * @param map<string, wild> $options Constraints on selectable services. 1791 + * @param map<string, mixed> $options Constraints on selectable services. 1792 1792 * @return string|null URI, or `null` for local repositories. 1793 1793 */ 1794 1794 public function getAlmanacServiceURI(
+2 -2
src/applications/search/engine/PhabricatorApplicationSearchEngine.php
··· 1519 1519 * Render a content body (if available) to onboard new users. 1520 1520 * This body is usually visible when you have no elements in a list, 1521 1521 * or when you force the rendering on a list with the `?nux=1` URL. 1522 - * @return wild|PhutilSafeHTML|null 1522 + * @return mixed|PhutilSafeHTML|null 1523 1523 */ 1524 1524 final public function renderNewUserView() { 1525 1525 $body = $this->getNewUserBody(); ··· 1535 1535 * Get a content body to onboard new users. 1536 1536 * Traditionally this content is shown from an empty list, to explain 1537 1537 * what a certain entity does, and how to create a new one. 1538 - * @return wild|PhutilSafeHTML|null 1538 + * @return mixed|PhutilSafeHTML|null 1539 1539 */ 1540 1540 protected function getNewUserHeader() { 1541 1541 return null;
+2 -2
src/applications/settings/panel/PhabricatorSettingsPanel.php
··· 238 238 * a redirect when the user saves settings. 239 239 * 240 240 * @param AphrontRequest $request Incoming request. 241 - * @return wild Response to request, either as an 242 - * @{class:AphrontResponse} or something which can 241 + * @return AphrontResponse|AphrontView|array Response to request, either as 242 + * an @{class:AphrontResponse} or something which can 243 243 * be composed into a @{class:AphrontView}. 244 244 * @task panel 245 245 */
+1 -1
src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php
··· 215 215 * This is intended to simplify performing a bunch of redundant checks; you 216 216 * can intentionally pass any value in (including `null`). 217 217 * 218 - * @param wild $object 218 + * @param object $object 219 219 * @return string|null Space PHID of the object, or null. 220 220 */ 221 221 public static function getObjectSpacePHID($object) {
+5 -4
src/applications/transactions/editengine/PhabricatorEditEngine.php
··· 691 691 * Initialize a new object for object creation via Conduit. 692 692 * 693 693 * @return object Newly initialized object. 694 - * @param list<wild> $raw_xactions Raw transactions. 694 + * @param array<mixed> $raw_xactions Raw transactions. 695 695 * @task load 696 696 */ 697 697 protected function newEditableObjectFromConduit(array $raw_xactions) { ··· 725 725 * Try to load an object by ID, PHID, or monogram. This is done primarily 726 726 * to make Conduit a little easier to use. 727 727 * 728 - * @param wild $identifier ID, PHID, or monogram. 728 + * @param int|string $identifier ID, PHID, or monogram. 729 729 * @param list<string> $capabilities (optional) List of required capability 730 730 * constants, or omit for defaults. 731 731 * @return object Corresponding editable object. ··· 873 873 /** 874 874 * Verify that an object is appropriate for editing. 875 875 * 876 - * @param wild $object Loaded value. 876 + * @param PhabricatorApplicationTransactionInterface $object Loaded value. 877 877 * @return void 878 878 * @task load 879 879 */ ··· 2264 2264 * request. 2265 2265 * 2266 2266 * @param ConduitAPIRequest $request The request. 2267 - * @param list<wild> $xactions Raw conduit transactions. 2267 + * @param array<array{type:string,value:mixed}> $xactions Raw conduit 2268 + * transactions. 2268 2269 * @param list<PhabricatorEditType> $types Supported edit types. 2269 2270 * @param PhabricatorApplicationTransaction $template Template transaction. 2270 2271 * @return list<PhabricatorApplicationTransaction> Generated transactions.
+1 -1
src/applications/transactions/editfield/PhabricatorEditField.php
··· 575 575 * 576 576 * @param AphrontRequest $request Request to read from. 577 577 * @param string $key Key to read. 578 - * @return wild|null Value read from request. 578 + * @return mixed Value read from request. 579 579 */ 580 580 protected function getInitialValueFromSubmit(AphrontRequest $request, $key) { 581 581 return null;
+12 -10
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
··· 3286 3286 * This will return `true` if the net effect of the object and transactions 3287 3287 * is an empty field. 3288 3288 * 3289 - * @param wild $field_value Current field value. 3289 + * @param mixed $field_value Current field value. 3290 3290 * @param list<PhabricatorApplicationTransaction> $xactions Transactions 3291 3291 * editing the field. 3292 3292 * @return bool True if the field will be an empty text field after edits. ··· 4547 4547 * 4548 4548 * This data will be loaded with @{method:loadWorkerState} in the worker. 4549 4549 * 4550 - * @return array<string, wild> Serializable editor state. 4550 + * @return array<string, mixed> Serializable editor state. 4551 4551 * @task workers 4552 4552 */ 4553 4553 private function getWorkerState() { ··· 4572 4572 /** 4573 4573 * Hook; return custom properties which need to be passed to workers. 4574 4574 * 4575 - * @return array<string, wild> Custom properties. 4575 + * @return array<string, mixed> Custom properties. 4576 4576 * @task workers 4577 4577 */ 4578 4578 protected function getCustomWorkerState() { ··· 4600 4600 * 4601 4601 * This method is used to load state when running worker operations. 4602 4602 * 4603 - * @param array<string, wild> $state Editor state, from 4603 + * @param array<string, mixed> $state Editor state, from 4604 4604 @{method:getWorkerState}. 4605 4605 * @return $this 4606 4606 * @task workers ··· 4627 4627 * Hook; set custom properties on the editor from data emitted by 4628 4628 * @{method:getCustomWorkerState}. 4629 4629 * 4630 - * @param array<string, wild> $state Custom state, 4630 + * @param array<string, mixed> $state Custom state, 4631 4631 * from @{method:getCustomWorkerState}. 4632 4632 * @return $this 4633 4633 * @task workers ··· 4675 4675 * 4676 4676 * See @{method:getCustomWorkerStateEncoding}. 4677 4677 * 4678 - * @param map<string, wild> $state Map of values to encode. 4679 - * @param map<string, string> $encodings Map of encodings to apply. 4680 - * @return map<string, wild> Map of encoded values. 4678 + * @param map<string,mixed> $state Map of values to encode. 4679 + * @param map<string,string> $encodings Map of encodings to apply. 4680 + * @return map<string,mixed> Map of encoded values. 4681 + * 4681 4682 * @task workers 4682 4683 */ 4683 4684 private function encodeStateForStorage( ··· 4721 4722 * 4722 4723 * See @{method:getCustomWorkerStateEncoding}. 4723 4724 * 4724 - * @param map<string, wild> $state Map of encoded values. 4725 + * @param map<string, mixed> $state Map of encoded values. 4725 4726 * @param map<string, string> $encodings Map of encodings. 4726 - * @return map<string, wild> Map of decoded values. 4727 + * @return map<string, mixed> Map of decoded values. 4728 + * 4727 4729 * @task workers 4728 4730 */ 4729 4731 private function decodeStateFromStorage(
+9 -9
src/infrastructure/cache/PhutilKeyValueCache.php
··· 31 31 * once. 32 32 * 33 33 * @param string $key Key to retrieve. 34 - * @param wild $default (optional) Value to return if the key is not 34 + * @param mixed $default (optional) Value to return if the key is not 35 35 * found. By default, returns null. 36 - * @return wild Cache value (on cache hit) or default value (on cache 36 + * @return mixed Cache value (on cache hit) or default value (on cache 37 37 * miss). 38 38 * @task kvimpl 39 39 */ ··· 50 50 * See @{method:setKeys} for a description of TTLs. 51 51 * 52 52 * @param string $key Key to set. 53 - * @param wild $value Value to set. 53 + * @param mixed $value Value to set. 54 54 * @param int|null $ttl (optional) TTL. 55 55 * @return $this 56 56 * @task kvimpl ··· 76 76 /** 77 77 * Get data from the cache. 78 78 * 79 - * @param list<string> $keys List of cache keys to retrieve. 80 - * @return array<string, wild> Dictionary of keys that were found in the 81 - * cache. Keys not present in the cache are 82 - * omitted, so you can detect a cache miss. 79 + * @param list<string> $keys List of cache keys to retrieve. 80 + * @return array<string, mixed> Dictionary of keys that were found in the 81 + * cache. Keys not present in the cache are 82 + * omitted, so you can detect a cache miss. 83 83 * @task kvimpl 84 84 */ 85 85 abstract public function getKeys(array $keys); ··· 92 92 * after a specified number of seconds. By default, there is no expiration 93 93 * policy and data will persist in cache indefinitely. 94 94 * 95 - * @param array<string, wild> $keys Map of cache keys to values. 96 - * @param int|null $ttl (optional) TTL for cache keys, in seconds. 95 + * @param array<string, mixed> $keys Map of cache keys to values. 96 + * @param int|null $ttl (optional) TTL for cache keys, in seconds. 97 97 * @return $this 98 98 * @task kvimpl 99 99 */
+4 -4
src/infrastructure/customfield/field/PhabricatorCustomField.php
··· 770 770 * @param PhabricatorApplicationSearchEngine $engine Engine building the 771 771 * query. 772 772 * @param AphrontRequest $request Request to read from. 773 - * @return wild 773 + * @return mixed 774 774 * @task appsearch 775 775 */ 776 776 public function readApplicationSearchValueFromRequest( ··· 793 793 * @param PhabricatorApplicationSearchEngine $engine Engine executing the 794 794 * query. 795 795 * @param PhabricatorCursorPagedPolicyAwareQuery $query Query to constrain. 796 - * @param wild $value Constraint provided by the user. 796 + * @param mixed $value Constraint provided by the user. 797 797 * @task appsearch 798 798 */ 799 799 public function applyApplicationSearchConstraintToQuery( ··· 816 816 * @param PhabricatorApplicationSearchEngine $engine Engine constructing the 817 817 * form. 818 818 * @param AphrontFormView $form The form to update. 819 - * @param wild $value Value from the saved query. 819 + * @param mixed $value Value from the saved query. 820 820 * @task appsearch 821 821 */ 822 822 public function appendToApplicationSearchForm( ··· 1540 1540 /** 1541 1541 * Get the field value for evaluation by Herald. 1542 1542 * 1543 - * @return wild Field value. 1543 + * @return mixed Field value. 1544 1544 * @task herald 1545 1545 */ 1546 1546 public function getHeraldFieldValue() {
+2 -2
src/infrastructure/daemon/workers/PhabricatorWorker.php
··· 263 263 /** 264 264 * Get tasks queued as followups by @{method:queueTask}. 265 265 * 266 - * @return list<array<string, wild, int|null>> Queued task specifications. 266 + * @return list<array{string, mixed, int|null}> Queued task specifications. 267 267 */ 268 268 final protected function getQueuedTasks() { 269 269 return $this->queuedTasks; ··· 277 277 * this method to force the queue to flush before failing (for example, if 278 278 * you are using queues to improve locking behavior). 279 279 * 280 - * @param map<string, wild> $defaults (optional) Default options. 280 + * @param map<string, mixed> $defaults (optional) Default options. 281 281 */ 282 282 final public function flushTaskQueue($defaults = array()) { 283 283 foreach ($this->getQueuedTasks() as $task) {
+1 -1
src/infrastructure/daemon/workers/action/PhabricatorTriggerAction.php
··· 28 28 /** 29 29 * Validate action configuration. 30 30 * 31 - * @param map<string, wild> $properties Map of action properties. 31 + * @param map<string, mixed> $properties Map of action properties. 32 32 * @return void 33 33 */ 34 34 abstract public function validateProperties(array $properties);
+1 -1
src/infrastructure/daemon/workers/clock/PhabricatorTriggerClock.php
··· 32 32 /** 33 33 * Validate clock configuration. 34 34 * 35 - * @param map<string, wild> $properties Map of clock properties. 35 + * @param map<string, mixed> $properties Map of clock properties. 36 36 * @return void 37 37 */ 38 38 abstract public function validateProperties(array $properties);
+1 -1
src/infrastructure/edges/query/PhabricatorEdgeQuery.php
··· 142 142 * @param string $src_phid Source PHID. 143 143 * @param string $edge_type Edge type constant. 144 144 * @param string $dest_phid Destination PHID. 145 - * @return wild|null Edge annotation, or null. 145 + * @return mixed Edge annotation, or null. 146 146 */ 147 147 public static function loadSingleEdgeData($src_phid, $edge_type, $dest_phid) { 148 148 $edges = id(new PhabricatorEdgeQuery())
+1 -1
src/infrastructure/env/PhabricatorScopedEnv.php
··· 18 18 * Override a configuration key in this scope, setting it to a new value. 19 19 * 20 20 * @param string $key Key to override. 21 - * @param wild $value New value. 21 + * @param mixed $value New value. 22 22 * @return $this 23 23 * 24 24 * @task override
+1 -1
src/infrastructure/markup/PhabricatorMarkupEngine.php
··· 196 196 * @param string $field The field to retrieve. 197 197 * @param string $metadata_key The engine metadata field 198 198 * to retrieve. 199 - * @param wild $default (optional) Default value. 199 + * @param mixed $default (optional) Default value. 200 200 * @task markup 201 201 */ 202 202 public function getEngineMetadata(
+4 -4
src/infrastructure/markup/markuprule/PhutilRemarkupRule.php
··· 61 61 * using them. 62 62 * 63 63 * @param string $name Tag name. 64 - * @param array<string, wild> $attrs Dictionary of tag attributes. 65 - * @param wild $content (optional) Tag content. 64 + * @param array<string, mixed> $attrs Dictionary of tag attributes. 65 + * @param mixed $content (optional) Tag content. 66 66 * @return PhutilSafeHTML Tag object. 67 67 */ 68 68 protected function newTag($name, array $attrs, $content = null) { ··· 86 86 * Normally, you can call @{method:newTag} rather than calling this method 87 87 * directly. @{method:newTag} will check attributes for you. 88 88 * 89 - * @param wild $text Ostensibly flat text. 89 + * @param mixed $text Ostensibly flat text. 90 90 * @return string Flat text. 91 91 */ 92 92 protected function assertFlatText($text) { ··· 105 105 /** 106 106 * Check whether text is flat (contains no replacement tokens) or not. 107 107 * 108 - * @param wild $text Ostensibly flat text. 108 + * @param mixed $text Ostensibly flat text. 109 109 * @return bool True if the text is flat. 110 110 */ 111 111 protected function isFlatText($text) {
+1 -1
src/infrastructure/markup/render.php
··· 18 18 * 19 19 * @param string $tag The name of the tag, like `a` or `div`. 20 20 * @param map<string, string> $attributes (optional) A map of tag attributes. 21 - * @param wild $content (optional) Content to put in the tag. 21 + * @param mixed $content (optional) Content to put in the tag. 22 22 * @return PhutilSafeHTML Tag object. 23 23 */ 24 24 function phutil_tag($tag, array $attributes = array(), $content = null) {
+4 -1
src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php
··· 258 258 * This is intended to make it easy to write unit tests for object remarkup 259 259 * rules. Production code is not normally expected to call this method. 260 260 * 261 + * @phpstan-type RemarkupReference array{offset: string, 262 + * id: string, tail: string} 261 263 * @param string $text Text to match rules against. 262 - * @return wild Matches, suitable for writing unit tests against. 264 + * @return map<string, RemarkupReference[]> Matches, suitable for writing 265 + * unit tests against. 263 266 */ 264 267 public function extractReferences($text) { 265 268 $embed_matches = null;
+5 -1
src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
··· 955 955 * - `vector` (`list<string>`): The actual order vector to use. 956 956 * - `name` (`string`): Human-readable order name. 957 957 * 958 - * @return map<string, wild> Map from builtin order keys to specification. 958 + * @phpstan-type BuiltinOrder array{name: string, vector: string[], 959 + * aliases?: string[]} 960 + * @return map<string,BuiltinOrder> Map from builtin order keys to 961 + * specification. 962 + * 959 963 * @task order 960 964 */ 961 965 public function getBuiltinOrders() {
+1 -1
src/infrastructure/storage/lisk/LiskDAO.php
··· 883 883 * using legacy features with CONFIG_CONVERT_CAMELCASE, but in that case you 884 884 * should just go ahead and die in a fire). 885 885 * 886 - * @return array<string,wild|null> Dictionary of object properties. 886 + * @return array<string,mixed> Dictionary of object properties. 887 887 * 888 888 * @task info 889 889 */
+4 -4
src/view/AphrontView.php
··· 100 100 * This method will only work if the view supports children, which is 101 101 * determined by @{method:canAppendChild}. 102 102 * 103 - * @param wild $child Something renderable. 103 + * @param mixed $child Something renderable. 104 104 * @return $this 105 105 */ 106 106 final public function appendChild($child) { ··· 122 122 * Historically, this method reduced children to a string representation, 123 123 * but it no longer does. 124 124 * 125 - * @return wild Renderable children. 125 + * @return mixed Renderable children. 126 126 * @task 127 127 */ 128 128 final protected function renderChildren() { ··· 152 152 * NOTE: Because View children are not rendered, a View which renders down 153 153 * to nothing will not be reduced by this method. 154 154 * 155 - * @param list<wild> $children Renderable children. 156 - * @return list<wild> Reduced list of children. 155 + * @param list<mixed> $children Renderable children. 156 + * @return list<mixed> Reduced list of children. 157 157 * @task children 158 158 */ 159 159 private function reduceChildren(array $children) {
+2 -2
support/startup/PhabricatorStartup.php
··· 514 514 * Adjustments here primarily impact the environment as seen by subprocesses. 515 515 * The environment is forwarded explicitly by @{class:ExecFuture}. 516 516 * 517 - * @param map<string, wild> $env Input `$_ENV`. 517 + * @param map<string, mixed> $env Input `$_ENV`. 518 518 * @return map<string, string> Suitable `$_ENV`. 519 519 * @task validation 520 520 */ ··· 694 694 /** 695 695 * Tear down rate limiting and allow limits to score the request. 696 696 * 697 - * @param map<string, wild> $request_state Additional, freeform request 697 + * @param map<string, mixed> $request_state Additional, freeform request 698 698 * state. 699 699 * @return void 700 700 * @task ratelimit