Skip to content

Commit

Permalink
[5.6] PHPUnit 7 (#23005)
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and taylorotwell committed Feb 2, 2018
1 parent 387795e commit b8b26c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"moontoast/math": "^1.1",
"orchestra/testbench-core": "3.6.*",
"pda/pheanstalk": "~3.0",
"phpunit/phpunit": "~6.0",
"phpunit/phpunit": "~7.0",
"predis/predis": "^1.1.1",
"symfony/css-selector": "~4.0",
"symfony/dom-crawler": "~4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(Connection $database, array $data)
* @param string $table
* @return bool
*/
public function matches($table)
public function matches($table): bool
{
return $this->database->table($table)->where($this->data)->count() > 0;
}
Expand All @@ -59,7 +59,7 @@ public function matches($table)
* @param string $table
* @return string
*/
public function failureDescription($table)
public function failureDescription($table): string
{
return sprintf(
"a row in the table [%s] matches the attributes %s.\n\n%s",
Expand Down Expand Up @@ -96,7 +96,7 @@ protected function getAdditionalInfo($table)
* @param int $options
* @return string
*/
public function toString($options = 0)
public function toString($options = 0): string
{
return json_encode($this->data, $options);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(Connection $database, array $data)
* @param string $table
* @return bool
*/
public function matches($table)
public function matches($table): bool
{
return $this->database->table($table)
->where($this->data)->whereNotNull('deleted_at')->count() > 0;
Expand All @@ -60,7 +60,7 @@ public function matches($table)
* @param string $table
* @return string
*/
public function failureDescription($table)
public function failureDescription($table): string
{
return sprintf(
"any soft deleted row in the table [%s] matches the attributes %s.\n\n%s",
Expand Down Expand Up @@ -96,7 +96,7 @@ protected function getAdditionalInfo($table)
*
* @return string
*/
public function toString()
public function toString(): string
{
return json_encode($this->data);
}
Expand Down

0 comments on commit b8b26c0

Please sign in to comment.