HomePhabricator

Add a linter rule to ensure that `namespace` is the first statement in a file

Description

Add a linter rule to ensure that namespace is the first statement in a file

Summary: If a namespace is used within a PHP script, it must be the first statement.

Test Plan: Added unit tests.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Nov 25 2015, 8:36 PM
Reviewer
Blessed Reviewers
Differential Revision
D14526: Add a linter rule to ensure that `namespace` is the first statement in a file
Parents
rARC600dcf83dd11: Fix linter rule ID
Branches
Unknown
Tags
Unknown
Build Status
Buildable 9072
Build 10679: Run Core Tests