File tree Expand file tree Collapse file tree 7 files changed +646
-162
lines changed Expand file tree Collapse file tree 7 files changed +646
-162
lines changed Original file line number Diff line number Diff line change 16
16
matrix :
17
17
fast_finish : true
18
18
include :
19
- - php : 5.5
19
+ - php : 5.6
20
20
env :
21
21
- CODE_COVERAGE="1"
22
- - php : 5.6
22
+ - php : 7.0
23
23
env :
24
24
- PHPDOC="1"
25
- - php : 7.0
26
25
- php : 7.1
27
26
env :
28
27
- CODE_COVERAGE="1"
29
28
- php : nightly
29
+
30
+ # HHVM is no longer supported on Ubuntu Precise. Please consider using Trusty with `dist: trusty`.
30
31
- php : hhvm
31
- # HHVM is no longer supported on Ubuntu Precise. Please consider using Trusty with `dist: trusty`.
32
32
dist : trusty
33
33
allow_failures :
34
34
- php : nightly
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " marc-mabe/php-enum" ,
3
- "description" : " Simple and fast implementation of enumerations with native PHP 5.5 and upper" ,
3
+ "description" : " Simple and fast implementation of enumerations with native PHP 5.6 and upper" ,
4
4
"type" : " library" ,
5
5
"keywords" : [
6
6
" enum" ,
21
21
}],
22
22
"license" : " BSD-3-Clause" ,
23
23
"require" : {
24
- "php" : " >=5.5 " ,
24
+ "php" : " >=5.6 " ,
25
25
"ext-reflection" : " *"
26
26
},
27
27
"suggest" : {
28
28
"php" : " PHP>=5.4 will be required for using trait EnumSerializableTrait"
29
29
},
30
30
"require-dev" : {
31
- "phpunit/phpunit" : " ^4.0 || ^ 5.0" ,
31
+ "phpunit/phpunit" : " ^5.0" ,
32
32
"phpbench/phpbench" : " @dev" ,
33
33
34
34
"lstrojny/functional-php" : " HHVM: variadic params with type constraints are not supported in non-Hack" ,
Original file line number Diff line number Diff line change 11
11
beStrictAboutTestsThatDoNotTestAnything =" true"
12
12
beStrictAboutOutputDuringTests =" true"
13
13
beStrictAboutTestSize =" true"
14
- checkForUnintentionallyCoveredCode =" true"
14
+ beStrictAboutCoversAnnotation =" true"
15
15
>
16
16
<testsuite name =" php-enum Test-Suite" >
17
17
<directory >./tests</directory >
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ class EnumMap extends SplObjectStorage
27
27
*/
28
28
public function __construct ($ enumeration )
29
29
{
30
- if (!is_subclass_of ($ enumeration , __NAMESPACE__ . ' \ Enum' )) {
30
+ if (!is_subclass_of ($ enumeration , Enum::class )) {
31
31
throw new InvalidArgumentException (sprintf (
32
32
"This EnumMap can handle subclasses of '%s' only " ,
33
- __NAMESPACE__ . ' \ Enum'
33
+ Enum::class
34
34
));
35
35
}
36
36
$ this ->enumeration = $ enumeration ;
You can’t perform that action at this time.
0 commit comments