Skip to content

Commit d631995

Browse files
author
jacek.foremski
committed
Add return type declaration for "equals()" method
1 parent e1cc10a commit d631995

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

.travis.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7.0
8-
- 7.1
94
- 7.2
105
- 7.3
116

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class Action extends Enum
3838
}
3939
```
4040

41-
Note the `private` keyword requires PHP 7.1 or higher, you can omit it on PHP 7.0.
42-
4341
## Usage
4442

4543
```php

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"require": {
25-
"php": ">=5.4",
25+
"php": ">=7.2",
2626
"ext-json": "*"
2727
},
2828
"require-dev": {

src/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __toString()
8787
*
8888
* @return bool
8989
*/
90-
final public function equals($variable = null)
90+
final public function equals($variable = null): bool
9191
{
9292
return $variable instanceof self
9393
&& $this->getValue() === $variable->getValue()

0 commit comments

Comments
 (0)