Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 11:01 AM
Unknown Object (File)
Tue, Apr 9, 6:57 AM
Unknown Object (File)
Fri, Apr 5, 6:27 PM
Unknown Object (File)
Sun, Mar 31, 9:07 PM
Unknown Object (File)
Thu, Mar 28, 4:18 PM
Unknown Object (File)
Feb 14 2024, 12:36 PM
Unknown Object (File)
Dec 27 2023, 1:34 PM
Unknown Object (File)
Dec 27 2023, 12:49 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.