This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Assert that method names using reserved keywords are ign…
…ored
- Loading branch information
1 parent
c42dcb2
commit 21595e0
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
26 changes: 26 additions & 0 deletions
26
test/TestAsset/WithMethodsNamedAfterKeywords/WithReturnTypeDeclaration.php
This file contains 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,26 @@ | ||
<?php | ||
|
||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zend-file for the canonical source repository | ||
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license https://github.com/zendframework/zend-file/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
namespace ZendTest\File\TestAsset\WithMethodsNamedAfterKeywords; | ||
|
||
final class WithReturnTypeDeclaration | ||
{ | ||
public function class(): string | ||
{ | ||
} | ||
|
||
public function interface(): string | ||
{ | ||
} | ||
|
||
public function trait(): string | ||
{ | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
test/TestAsset/WithMethodsNamedAfterKeywords/WithoutReturnTypeDeclaration.php
This file contains 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,26 @@ | ||
<?php | ||
|
||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zend-file for the canonical source repository | ||
* @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license https://github.com/zendframework/zend-file/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
namespace ZendTest\File\TestAsset\WithMethodsNamedAfterKeywords; | ||
|
||
final class WithoutReturnTypeDeclaration | ||
{ | ||
public function class() | ||
{ | ||
} | ||
|
||
public function interface() | ||
{ | ||
} | ||
|
||
public function trait() | ||
{ | ||
} | ||
} |