Skip to content

Commit

Permalink
Add return type declaration for "equals()" method (#88)
Browse files Browse the repository at this point in the history
Add return type declaration for "equals()" method
  • Loading branch information
mnapoli authored Apr 23, 2019
2 parents e1cc10a + d631995 commit e00b7b3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class Action extends Enum
}
```

Note the `private` keyword requires PHP 7.1 or higher, you can omit it on PHP 7.0.

## Usage

```php
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"require": {
"php": ">=5.4",
"php": ">=7.2",
"ext-json": "*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function __toString()
*
* @return bool
*/
final public function equals($variable = null)
final public function equals($variable = null): bool
{
return $variable instanceof self
&& $this->getValue() === $variable->getValue()
Expand Down

0 comments on commit e00b7b3

Please sign in to comment.