-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from PHPCSStandards/develop
Release PHPCSExtra 1.0.2
- Loading branch information
Showing
12 changed files
with
237 additions
and
21 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
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
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
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
Universal/Tests/CodeAnalysis/ConstructorDestructorReturnUnitTest.2.inc
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,22 @@ | ||
<?php | ||
|
||
/* | ||
* This test file is run with php_version set to a value of 80000 or higher. | ||
* | ||
* The PHP4-style constructor should no longer be recognized as a constructor. | ||
* No errors should be thrown for it, nor any auto-fixes made. | ||
*/ | ||
class ReturnsAValue { | ||
public function __construct(): self { | ||
return $this; | ||
} | ||
|
||
public function __destruct():string { | ||
return 'destructed'; | ||
} | ||
|
||
function returnsavalue(): string | ||
{ | ||
return 'php4style'; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Universal/Tests/CodeAnalysis/ConstructorDestructorReturnUnitTest.2.inc.fixed
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,22 @@ | ||
<?php | ||
|
||
/* | ||
* This test file is run with php_version set to a value of 80000 or higher. | ||
* | ||
* The PHP4-style constructor should no longer be recognized as a constructor. | ||
* No errors should be thrown for it, nor any auto-fixes made. | ||
*/ | ||
class ReturnsAValue { | ||
public function __construct() { | ||
return $this; | ||
} | ||
|
||
public function __destruct() { | ||
return 'destructed'; | ||
} | ||
|
||
function returnsavalue(): string | ||
{ | ||
return 'php4style'; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Universal/Tests/CodeAnalysis/ConstructorDestructorReturnUnitTest.3.inc
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,22 @@ | ||
<?php | ||
|
||
/* | ||
* This test file is run with php_version set to a value of 70999 or lower. | ||
* | ||
* The PHP4-style constructor should be recognized as a constructor and handled as usual. | ||
*/ | ||
|
||
class ReturnsAValue { | ||
public function __construct(): self { | ||
return $this; | ||
} | ||
|
||
public function __destruct():string { | ||
return 'destructed'; | ||
} | ||
|
||
function returnsavalue(): string | ||
{ | ||
return 'php4style'; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Universal/Tests/CodeAnalysis/ConstructorDestructorReturnUnitTest.3.inc.fixed
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,22 @@ | ||
<?php | ||
|
||
/* | ||
* This test file is run with php_version set to a value of 70999 or lower. | ||
* | ||
* The PHP4-style constructor should be recognized as a constructor and handled as usual. | ||
*/ | ||
|
||
class ReturnsAValue { | ||
public function __construct() { | ||
return $this; | ||
} | ||
|
||
public function __destruct() { | ||
return 'destructed'; | ||
} | ||
|
||
function returnsavalue() | ||
{ | ||
return 'php4style'; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Universal/Tests/CodeAnalysis/ConstructorDestructorReturnUnitTest.4.inc
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,14 @@ | ||
<?php | ||
|
||
/* | ||
* This test file is only here to reset the value of the php_version configuration option. | ||
* | ||
* The PHP4-style constructor should be recognized as a constructor and handled as usual. | ||
*/ | ||
|
||
class ReturnsAValue { | ||
function returnsavalue(): string | ||
{ | ||
return 'php4style'; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Universal/Tests/CodeAnalysis/ConstructorDestructorReturnUnitTest.4.inc.fixed
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,14 @@ | ||
<?php | ||
|
||
/* | ||
* This test file is only here to reset the value of the php_version configuration option. | ||
* | ||
* The PHP4-style constructor should be recognized as a constructor and handled as usual. | ||
*/ | ||
|
||
class ReturnsAValue { | ||
function returnsavalue() | ||
{ | ||
return 'php4style'; | ||
} | ||
} |
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