Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
F14859741: D19590.id46828.diff
Thu, Feb 6, 7:44 PM
Unknown Object (File)
Sun, Feb 2, 4:59 PM
Unknown Object (File)
Thu, Jan 30, 4:27 PM
Unknown Object (File)
Tue, Jan 21, 12:52 PM
Unknown Object (File)
Dec 31 2024, 4:00 PM
Unknown Object (File)
Dec 20 2024, 11:56 PM
Unknown Object (File)
Dec 12 2024, 7:54 AM
Unknown Object (File)
Dec 10 2024, 8:31 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
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20621
Build 28024: Run Core Tests
Build 28023: arc lint + arc unit

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.