HomePhabricator

Consider magic scalars to be constant strings

Description

Consider magic scalars to be constant strings

Summary: Consider magic scalars such as __DIR__ to be constant strings. I am using this to determine if a path that is imported with require_once is autoloadable, see D12271 for some additional context.

Test Plan: Tested externally with a custom linter.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12270

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Apr 6 2015, 10:15 PM
Reviewer
Blessed Reviewers
Differential Revision
D12270: Consider magic scalars to be constant strings
Parents
rPHUd30d314dc8eb: Add a method to get the indentation for an XHPASTNode
Branches
Unknown
Tags
Unknown