-
Notifications
You must be signed in to change notification settings - Fork 3.7k
enh(php) some PHP cleanups #3427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7a06bad
chore(php) rewrite keyword lists to arrays
joshgoebel c4a068b
enh(php) improve namespace/use highlighting
joshgoebel e158fbd
chore(php) comments should not care about pre-processor
joshgoebel f5616e1
chore(php) remove dead contains rule
joshgoebel 6e116aa
enh(php) $this is a variable.language
joshgoebel 38ebe60
chore(php) no binary strings, was a 6.0 only thing
joshgoebel 5907a60
enh(php) add __COMPILER_HALT_OFFSET__
joshgoebel fc6bcc9
chore(php) more correct __halt_compiler();
joshgoebel c5e405f
chore(php) add changelog for PHP improvements
joshgoebel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <span class="hljs-keyword">namespace</span> <span class="hljs-title class_">Location</span>\<span class="hljs-title class_">Web</span>; | ||
| <span class="hljs-keyword">namespace</span> <span class="hljs-title class_">foo</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">Classname</span> <span class="hljs-keyword">as</span> <span class="hljs-title">Another</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">NSname</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-title">ArrayObject</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-keyword">function</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">functionName</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-keyword">function</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">functionName</span> <span class="hljs-keyword">as</span> <span class="hljs-title">func</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-keyword">const</span> <span class="hljs-title">My</span>\<span class="hljs-title">Full</span>\<span class="hljs-title">CONSTANT</span>; | ||
| <span class="hljs-keyword">use</span> <span class="hljs-title">Example</span>\{<span class="hljs-title">ClassA</span>, <span class="hljs-title">ClassB</span>, <span class="hljs-title">ClassC</span> <span class="hljs-keyword">as</span> <span class="hljs-title">C</span>}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| namespace Location\Web; | ||
| namespace foo; | ||
| use My\Full\Classname as Another; | ||
| use My\Full\NSname; | ||
| use ArrayObject; | ||
| use function My\Full\functionName; | ||
| use function My\Full\functionName as func; | ||
| use const My\Full\CONSTANT; | ||
| use Example\{ClassA, ClassB, ClassC as C}; | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.