Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
F19273201: D19590.diff
Mon, Dec 22, 11:25 PM
F19068490: D19590.id.diff
Sun, Nov 30, 12:18 PM
F19062063: D19590.diff
Sat, Nov 29, 2:39 PM
F18854701: D19590.id.diff
Nov 1 2025, 12:27 AM
F18831720: D19590.diff
Oct 25 2025, 2:48 PM
F18817450: D19590.id.diff
Oct 21 2025, 3:42 PM
F18774237: D19590.diff
Oct 9 2025, 5:27 PM
F18733806: D19590.diff
Sep 30 2025, 10:42 PM
Subscribers

Details

Summary

I maintain a Phabricator library which supports PHP 7, but I can't use PHP 7 types because this causes "unknown class/interface" linter warnings. Ignore PHP built-in types, similar to D18151.

Test Plan

Ran scripts/phutil_symbols.php on the following file:

<?php

function x(array $a, bool $b, float $f, int $i, string $s, iterable $ii, object $o): void {}

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley added inline comments.
scripts/phutil_symbols.php
550

Not you, but maybe fix it s -> it's if you still have this file handy.

This revision is now accepted and ready to land.Aug 15 2018, 5:00 PM
joshuaspence marked an inline comment as done.

Fix someone else's mistakes

This revision was automatically updated to reflect the committed changes.