Page MenuHomePhabricator

Ignore PHP types for "needs" symbols
ClosedPublic

Authored by joshuaspence on Aug 15 2018, 2:16 AM.
Tags
None
Referenced Files
F11780239: D19590.diff
Sun, May 28, 3:17 AM
Unknown Object (File)
Apr 12 2023, 7:15 PM
Unknown Object (File)
Mar 24 2023, 4:37 AM
Unknown Object (File)
Mar 20 2023, 7:05 AM
Unknown Object (File)
Feb 26 2023, 8:34 AM
Unknown Object (File)
Jan 23 2023, 6:29 AM
Unknown Object (File)
Jan 1 2023, 7:54 PM
Unknown Object (File)
Dec 9 2022, 5:13 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.