Page MenuHomePhabricator

Present case of class and interface names.
ClosedPublic

Authored by joshuaspence on Jun 11 2014, 5:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 4:10 PM
Unknown Object (File)
Sun, Nov 10, 6:04 AM
Unknown Object (File)
Oct 20 2024, 3:31 PM
Unknown Object (File)
Sep 30 2024, 9:25 PM
Unknown Object (File)
Sep 26 2024, 2:35 PM
Unknown Object (File)
Sep 24 2024, 6:08 PM
Unknown Object (File)
Sep 18 2024, 6:47 PM
Unknown Object (File)
Sep 18 2024, 6:44 PM
Subscribers

Details

Summary

Currently, class and interface names are converted to lowercase when comparing minimum and maximum versions. This is necessary in order to compare with the data from php_compat_info.json but causes the lint message to be slightly misleading.

Test Plan

Linted a test file.

Before

Error  (XHP31) Use Of PHP 5.3 Features
 This codebase targets PHP 5.2.3, but `iterator` was not introduced until
 PHP 5.3.0.

            1 <?php
            2
 >>>        3 final class FooBar implements Iterator {}

After

Error  (XHP31) Use Of PHP 5.3 Features
 This codebase targets PHP 5.2.3, but `Iterator` was not introduced until
 PHP 5.3.0.

            1 <?php
            2
 >>>        3 final class FooBar implements Iterator {}

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Present case of class and interface names..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 11 2014, 12:39 PM
epriestley updated this revision to Diff 22647.

Closed by commit rARCb189b594d20c (authored by @joshuaspence, committed by @epriestley).