Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
F18219638: D19590.id.diff
Tue, Aug 19, 12:04 PM
F18205654: D19590.diff
Mon, Aug 18, 3:00 PM
F17738804: D19590.id46822.diff
Jul 21 2025, 12:41 AM
F17736324: D19590.diff
Jul 20 2025, 4:56 PM
F17736214: D19590.id.diff
Jul 20 2025, 4:37 PM
F17735535: D19590.id46827.diff
Jul 20 2025, 2:34 PM
F17734530: D19590.id46828.diff
Jul 20 2025, 11:22 AM
Unknown Object (File)
Jul 1 2025, 9:19 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.