Homec4science

Consider magic scalars to be constant strings

Authored by Joshua Spence <josh@joshuaspence.com> on Apr 7 2015, 00:11.

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

Committed
Joshua Spence <josh@joshuaspence.com>Apr 7 2015, 00:15
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUd30d314dc8eb: Add a method to get the indentation for an XHPASTNode
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHU7fc053c2cbb1: Consider magic scalars to be constant strings (authored by Joshua Spence <josh@joshuaspence.com>).Apr 7 2015, 00:15