Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
F14056176: D19590.diff
Sat, Nov 16, 6:40 PM
F14003456: D19590.id46822.diff
Sat, Oct 26, 6:21 AM
F13993116: D19590.diff
Tue, Oct 22, 8:45 PM
Unknown Object (File)
Sep 12 2024, 9:06 AM
Unknown Object (File)
Sep 6 2024, 3:41 AM
Unknown Object (File)
Sep 1 2024, 9:24 AM
Unknown Object (File)
Aug 27 2024, 11:58 PM
Unknown Object (File)
Aug 26 2024, 5:06 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.