Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 2b2984d

Browse files
committed
Merge branch 'hotfix/stdlib-3'
Close #52 Fixes #49
2 parents 202a97d + 947c22e commit 2b2984d

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- Nothing.
21+
- [#52](https://github.com/zendframework/zend-code/pull/52) updates several
22+
dependency constraints:
23+
- zend-stdlib now allows either the 2.7 or 3.0 series, as the APIs consumed by
24+
zend-code are compatible across versions.
25+
- PHP now excludes the 7.0.5 release, as it has known issues in its tokenizer
26+
implementation that make the zend-code token scanner unusable.
2227

2328
## 3.0.1 - 2016-01-26
2429

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
}
1414
},
1515
"require": {
16-
"php": "^5.5 || ^7.0",
16+
"php": "^5.5 || 7.0.0 - 7.0.4 || ^7.0.6",
1717
"zendframework/zend-eventmanager": "^2.6 || ^3.0"
1818
},
1919
"require-dev": {
2020
"ext-phar": "*",
2121
"doctrine/annotations": "~1.0",
22-
"zendframework/zend-stdlib": "~2.7",
22+
"zendframework/zend-stdlib": "^2.7 || ^3.0",
2323
"squizlabs/php_codesniffer": "^2.5",
2424
"phpunit/PHPUnit": "^4.8.21"
2525
},

src/Scanner/ClassScanner.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ protected function scan()
919919
SCANNER_TOP:
920920

921921
switch ($tokenType) {
922-
923922
case T_DOC_COMMENT:
924923
$this->docComment = $tokenContent;
925924
goto SCANNER_CONTINUE;
@@ -944,7 +943,6 @@ protected function scan()
944943
$this->lineStart = $tokenLine;
945944

946945
switch ($tokenType) {
947-
948946
case T_FINAL:
949947
$this->isFinal = true;
950948
goto SCANNER_CLASS_INFO_CONTINUE;
@@ -1008,7 +1006,6 @@ protected function scan()
10081006
$classInterfaceIndex++;
10091007
$this->shortInterfaces[$classInterfaceIndex] = '';
10101008
}
1011-
10121009
}
10131010

10141011
SCANNER_CLASS_INFO_CONTINUE:
@@ -1021,7 +1018,6 @@ protected function scan()
10211018
SCANNER_CLASS_INFO_END:
10221019

10231020
goto SCANNER_CONTINUE;
1024-
10251021
}
10261022

10271023
if ($tokenType === null && $tokenContent === '{' && $braceCount === 0) {
@@ -1037,7 +1033,6 @@ protected function scan()
10371033
}
10381034

10391035
switch ($tokenType) {
1040-
10411036
case T_CONST:
10421037
$infos[$infoIndex] = [
10431038
'type' => 'constant',
@@ -1239,7 +1234,6 @@ protected function scan()
12391234
}
12401235

12411236
switch ($tokenType) {
1242-
12431237
case T_CONST:
12441238
$memberContext = 'constant';
12451239
$infos[$infoIndex]['type'] = 'constant';

src/Scanner/DocBlockScanner.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ protected function scan()
159159

160160
case 'DOCBLOCK_COMMENTEND':
161161
goto SCANNER_END;
162-
163162
}
164163

165164
SCANNER_CONTINUE:

0 commit comments

Comments
 (0)