Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
F22616281: D19590.id46822.diff
Tue, Sep 29, 10:41 AM
F22524890: D19590.diff
Sun, Sep 20, 11:42 PM
Unknown Object (File)
Sep 1 2026, 11:56 PM
Unknown Object (File)
Aug 13 2026, 12:47 PM
Unknown Object (File)
Aug 9 2026, 4:12 AM
Unknown Object (File)
Jun 22 2026, 4:14 AM
Unknown Object (File)
Apr 6 2026, 6:54 PM
Unknown Object (File)
Apr 6 2026, 1:17 AM
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.