Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test to prevent lint from failing
- Loading branch information
Showing
10 changed files
with
146 additions
and
126 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
class ArithmeticError extends Error | ||
{ | ||
if (PHP_VERSION_ID < 70000) { | ||
class ArithmeticError extends Error | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
class AssertionError extends Error | ||
{ | ||
if (PHP_VERSION_ID < 70000) { | ||
class AssertionError extends Error | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
class DivisionByZeroError extends Error | ||
{ | ||
if (PHP_VERSION_ID < 70000) { | ||
class DivisionByZeroError extends Error | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
class Error extends Exception | ||
{ | ||
if (PHP_VERSION_ID < 70000) { | ||
class Error extends Exception | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
class ParseError extends Error | ||
{ | ||
if (PHP_VERSION_ID < 70000) { | ||
class ParseError extends Error | ||
{ | ||
} | ||
} |
40 changes: 21 additions & 19 deletions
40
src/Php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<?php | ||
|
||
interface SessionUpdateTimestampHandlerInterface | ||
{ | ||
/** | ||
* Checks if a session identifier already exists or not. | ||
* | ||
* @param string $key | ||
* | ||
* @return bool | ||
*/ | ||
public function validateId($key); | ||
if (PHP_VERSION_ID < 70000) { | ||
interface SessionUpdateTimestampHandlerInterface | ||
{ | ||
/** | ||
* Checks if a session identifier already exists or not. | ||
* | ||
* @param string $key | ||
* | ||
* @return bool | ||
*/ | ||
public function validateId($key); | ||
|
||
/** | ||
* Updates the timestamp of a session when its data didn't change. | ||
* | ||
* @param string $key | ||
* @param string $val | ||
* | ||
* @return bool | ||
*/ | ||
public function updateTimestamp($key, $val); | ||
/** | ||
* Updates the timestamp of a session when its data didn't change. | ||
* | ||
* @param string $key | ||
* @param string $val | ||
* | ||
* @return bool | ||
*/ | ||
public function updateTimestamp($key, $val); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
class TypeError extends Error | ||
{ | ||
if (PHP_VERSION_ID < 70000) { | ||
class TypeError extends Error | ||
{ | ||
} | ||
} |