File tree 3 files changed +4
-12
lines changed
3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - 5.3.3
5
4
- 5.4
6
5
- 5.5
7
6
- 5.6
8
7
- 7.0
9
8
- 7.1
10
- - hhvm
9
+ - 7.2
11
10
12
11
sudo : false
13
12
17
16
- $HOME/.composer/cache
18
17
19
18
before_script :
20
- - if [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]; then composer config disable-tls true; fi
21
- - if [ "$TRAVIS_PHP_VERSION" == "5.3.3" ]; then composer config secure-http false; fi
22
19
- composer install --no-interaction --prefer-source
23
20
24
21
script :
Original file line number Diff line number Diff line change 13
13
"psr-4" : {"JakubOnderka\\ PhpConsoleHighlighter\\ " : " src/" }
14
14
},
15
15
"require" : {
16
- "php" : " >=5.3 .0" ,
16
+ "php" : " >=5.4 .0" ,
17
17
"ext-tokenizer" : " *" ,
18
18
"jakub-onderka/php-console-color" : " ~0.1"
19
19
},
Original file line number Diff line number Diff line change @@ -151,17 +151,12 @@ private function tokenize($source)
151
151
case T_LINE :
152
152
case T_CLASS_C :
153
153
case T_FUNC_C :
154
- // case T_TRAIT_C:
154
+ case T_TRAIT_C :
155
155
$ newType = self ::TOKEN_DEFAULT ;
156
156
break ;
157
157
158
158
default :
159
- // Compatibility with PHP 5.3
160
- if (defined ('T_TRAIT_C ' ) && $ token [0 ] === T_TRAIT_C ) {
161
- $ newType = self ::TOKEN_DEFAULT ;
162
- } else {
163
- $ newType = self ::TOKEN_KEYWORD ;
164
- }
159
+ $ newType = self ::TOKEN_KEYWORD ;
165
160
}
166
161
} else {
167
162
$ newType = $ token === '" ' ? self ::TOKEN_STRING : self ::TOKEN_KEYWORD ;
You can’t perform that action at this time.
0 commit comments