Skip to content

Commit 87ddcc9

Browse files
committed
* 'master' of https://github.com/zendframework/zend-code: (39 commits) Fix Travis code convention Fix Travis code convention Fix Travis code convention Fix Travis code convention 1. Fix ClassScanner::getInterfaces() which don't work with Interface. 2. add TestCase ClassScannerTest::testGetInterfacesFromInterface(). Remove fast_finish flag Bumped to next dev version (3.0.5) Added CHANGELOG for zendframework#75 Separated new tests to separate methods testCorrectExtendNamesFromGlobalNamespace add tests Added CHANGELOG for zendframework#59 Update ClassGenerator.php fast fix Bumped to next dev version (3.0.4) Set date for 3.0.3 Added CHANGELOG for zendframework#72 Added CHANGELOG for zendframework#69 Added CHANGELOG for zendframework#61 Provide a fix for issue zendframework#70 ...
2 parents 2faccad + ee170a8 commit 87ddcc9

38 files changed

+404
-147
lines changed

.coveralls.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
coverage_clover: clover.xml
22
json_path: coveralls-upload.json
3-
src_dir: src

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ nbproject
99

1010
doc/html/
1111
tmp/
12+
zf-mkdoc-theme/
1213
clover.xml
1314
composer.lock
1415
coveralls-upload.json

.travis.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,34 @@ language: php
44

55
branches:
66
except:
7-
- /^release-.*$/
7+
- /^release-\d+\.\d+\.\d+.*$/
88
- /^ghgfk-.*$/
99

1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13+
- $HOME/.local
14+
- zf-mkdoc-theme
1315

1416
env:
1517
global:
1618
- TESTS_ZEND_CODE_ANNOTATION_DOCTRINE_SUPPORT=true
19+
- SITE_URL=https://zendframework.github.io/zend-code
20+
- GH_USER_NAME="Matthew Weier O'Phinney"
21+
- GH_USER_EMAIL=matthew@weierophinney.net
22+
- GH_REF=github.com/zendframework/zend-code.git
23+
- secure: "qgUppUW+xiQunsc07EvrYK7q9j4ewsYzN2ggxxFGaF694gkZ5V29Tb9W2qCkKEdMo6vE+X65P/lOoJceyavPm39/Ka/0V461qIiYX2ZcBVFI/eeVnpwLmU/E5YHn6fFNbiwFX0o4cJdVyTrSspMTXSuiQy+9bLSevDYmbpknR476nmsF8FRGdG6GMFx0XklF1QkoERSfy+FGlqp3VYOJZ2MH7eLhXQyGBKv471kyfmyyInUMVoDN9R8mjJ4Sxyt2qaQ5661DuWRXLaWEBaNOvfZ4++jJFipPLyqIEcE2GqTl9LH3suIBd0NAfHGgdakMJuBZfW3WA/OQ208qm+++qajnI30cxKiGkFoAR2plK9P5+09JAzbivglpEIEtq9a58/I1ahjy9+4sqJYyfxUC07o+REUleJl/ojO6QQ3JI/UUBbPSa3d78Sw9i8LUmLimiYEYQK9zwO1ZdKwJYCKaiYdYS8H0IwGci9t+MqlrllMG5M6f2HRkF1Ph05sWah8QwsGrJ7yiSiILaDHn7wFNvUiN3uw09W9AotQ0AEBzdM6U6CngDPVWKHI9L1d7+txuOLwGt6j8NKHWlgA1P9rMkeMGn2+46b5AlCkUxg6cVCA8ZLpr3a5WLK2F7qTHACtP9tckEb4G3vQjM79f6Nlpewcuc7p7uHWK5Y4UkojRN+U="
1724

1825
matrix:
19-
fast_finish: true
2026
include:
2127
- php: 5.5
2228
env:
2329
- EXECUTE_CS_CHECK=true
24-
- EXECUTE_DOC_CHECK=true
2530
- php: 5.6
2631
env:
2732
- EXECUTE_TEST_COVERALLS=true
33+
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
34+
- PATH="$HOME/.local/bin:$PATH"
2835
- php: 7
2936
- php: hhvm
3037
allow_failures:
@@ -37,7 +44,6 @@ notifications:
3744
before_install:
3845
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
3946
- composer self-update
40-
- if [[ $EXECUTE_DOC_CHECK == 'true' ]]; then composer require --dev --no-update phly/bookdown2mkdocs ; fi
4147
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
4248

4349
install:
@@ -50,7 +56,10 @@ script:
5056
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
5157
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
5258
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
53-
- if [[ $EXECUTE_DOC_CHECK == 'true' ]]; then make mkdocs ; diff mkdocs.yml mkdocs.yml.orig ; return $? ; fi
59+
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
60+
61+
after_success:
62+
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
5463

5564
after_script:
5665
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi

CHANGELOG.md

+77-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 3.0.2 - TBD
5+
## 3.0.5 - TBD
66

77
### Added
88

@@ -20,6 +20,82 @@ All notable changes to this project will be documented in this file, in reverse
2020

2121
- Nothing.
2222

23+
## 3.0.4 - 2016-06-30
24+
25+
### Added
26+
27+
- Nothing.
28+
29+
### Deprecated
30+
31+
- Nothing.
32+
33+
### Removed
34+
35+
- Nothing.
36+
37+
### Fixed
38+
39+
- [#59](https://github.com/zendframework/zend-code/pull/59) fixes an issue with
40+
detection of multiple trait `use` statements.
41+
- [#75](https://github.com/zendframework/zend-code/pull/75) provides a patch to
42+
ensure that `extends` statements qualify the parent class based on the current
43+
namespace and/or import statements.
44+
45+
## 3.0.3 - 2016-06-27
46+
47+
### Added
48+
49+
- [#66](https://github.com/zendframework/zend-code/pull/66) publishes the
50+
documentation to https://docs.zendframework.com/zend-code/.
51+
52+
### Deprecated
53+
54+
- Nothing.
55+
56+
### Removed
57+
58+
- Nothing.
59+
60+
### Fixed
61+
62+
- [#61](https://github.com/zendframework/zend-code/pull/61) fixes an issue with
63+
how parameter typehints were generated; previously, fully-qualified class
64+
names were not being generated with the leading backslash, causing them to
65+
attempt to resolve as if they were relative to the current namespace.
66+
- [#69](https://github.com/zendframework/zend-code/pull/69) fixes an issue with
67+
how class names under the same namespace are generated when generating
68+
typehints, extends, and implements values; they now strip the
69+
common namespace from the class name.
70+
- [#72](https://github.com/zendframework/zend-code/pull/72) fixes an issue
71+
within the `TokenArrayScanner` when scanning closures.
72+
73+
## 3.0.2 - 2016-04-20
74+
75+
### Added
76+
77+
- Nothing.
78+
79+
### Deprecated
80+
81+
- Nothing.
82+
83+
### Removed
84+
85+
- Nothing.
86+
87+
### Fixed
88+
89+
- [#52](https://github.com/zendframework/zend-code/pull/52) updates several
90+
dependency constraints:
91+
- zend-stdlib now allows either the 2.7 or 3.0 series, as the APIs consumed by
92+
zend-code are compatible across versions.
93+
- PHP now excludes the 7.0.5 release, as it has known issues in its tokenizer
94+
implementation that make the zend-code token scanner unusable.
95+
- [#46](https://github.com/zendframework/zend-code/pull/46) updates all
96+
generators to use `\n` for line endings in generated code, vs `PHP_EOL`,
97+
ensuring cross-platform consistency.
98+
2399
## 3.0.1 - 2016-01-26
24100

25101
### Added

composer.json

+2-2
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
},

0 commit comments

Comments
 (0)