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

Commit fb01ab6

Browse files
committed
Merge branch 'develop'
2 parents 2899c17 + 121a184 commit fb01ab6

File tree

135 files changed

+3795
-2432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+3795
-2432
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ tmp/
1111
zf-mkdoc-theme/
1212
clover.xml
1313
coveralls-upload.json
14-
phpcs.xml
1514
phpunit.xml
1615
vendor

.travis.yml

+13-30
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ cache:
1515

1616
env:
1717
global:
18-
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
18+
- COMPOSER_ARGS="--no-interaction"
19+
- COVERAGE_DEPS="satooshi/php-coveralls"
1920
- TESTS_ZEND_CODE_ANNOTATION_DOCTRINE_SUPPORT=true
2021
- SITE_URL="https://zendframework.github.io/zend-code"
2122
- GH_USER_NAME="Matthew Weier O'Phinney"
@@ -25,63 +26,45 @@ env:
2526

2627
matrix:
2728
include:
28-
- php: 5.6
29+
- php: 7.1
2930
env:
3031
- DEPS=lowest
31-
- php: 5.6
32+
- php: 7.1
3233
env:
3334
- DEPS=locked
3435
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3536
- PATH="$HOME/.local/bin:$PATH"
3637
- TEST_COVERAGE=true
37-
- php: 5.6
38-
env:
39-
- DEPS=latest
40-
- php: 7
41-
env:
42-
- DEPS=lowest
43-
- php: 7
44-
env:
45-
- DEPS=locked
4638
- CHECK_CS=true
47-
- php: 7
48-
env:
49-
- DEPS=latest
50-
- php: 7.1
51-
env:
52-
- DEPS=lowest
53-
- php: 7.1
54-
env:
55-
- DEPS=locked
5639
- php: 7.1
5740
env:
5841
- DEPS=latest
59-
- php: hhvm
42+
- php: nightly
6043
env:
6144
- DEPS=lowest
62-
- php: hhvm
45+
- php: nightly
6346
env:
6447
- DEPS=locked
65-
- php: hhvm
48+
- php: nightly
6649
env:
6750
- DEPS=latest
6851
allow_failures:
69-
- php: hhvm
52+
- php: nightly
7053

7154
notifications:
72-
irc: "irc.freenode.org#zftalk.dev"
7355
email: false
7456

7557
before_install:
7658
- travis_retry composer self-update
77-
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || true ; fi
59+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || true ; fi
7860

7961
install:
8062
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
81-
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
82-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
63+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update $COMPOSER_ARGS --prefer-lowest --prefer-stable ; fi
64+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
8365
- travis_retry composer install $COMPOSER_ARGS
84-
- composer show
66+
- stty cols 120
67+
- COLUMNS=120 composer show
8568

8669
script:
8770
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

CHANGELOG.md

+36-5
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.2.0 - TBD
5+
## 3.3.0 - TBD
66

77
### Added
88

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

2121
- Nothing.
2222

23-
## 3.1.1 - TBD
23+
## 3.2.0 - 2017-07-23
2424

2525
### Added
2626

27-
- Nothing.
27+
- [#112](https://github.com/zendframework/zend-code/pull/112)
28+
[#110](https://github.com/zendframework/zend-code/pull/110) Introduced
29+
support for the PHP `7.2` `object` type-hint
30+
- [#41](https://github.com/zendframework/zend-code/pull/41) Added `VarTag`
31+
support to the docblock generators and reflectors: allows generating
32+
and parsing `@var` tags.
33+
- [#113](https://github.com/zendframework/zend-code/pull/113) Added
34+
PHP `7.2` to the build matrix
35+
- [#114](https://github.com/zendframework/zend-code/pull/114) Increased
36+
minimum supported PHP version to `^7.1.0`
37+
- [#114](https://github.com/zendframework/zend-code/pull/114) Upgraded
38+
PHPUnit dependency to `^6.2.2`
39+
- [#121](https://github.com/zendframework/zend-code/pull/121) Imported
40+
global functions via `use` statements (experimenting with OpCache
41+
OPCODE inlining optimisations)
2842

2943
### Deprecated
3044

3145
- Nothing.
3246

3347
### Removed
3448

35-
- Nothing.
49+
- [#113](https://github.com/zendframework/zend-code/pull/113)
50+
[#118](https://github.com/zendframework/zend-code/pull/118) Removed
51+
HHVM support
52+
- [#122](https://github.com/zendframework/zend-code/pull/122) Removed
53+
IRC notifications for pushes/build statuses
3654

3755
### Fixed
3856

39-
- Nothing.
57+
- [#101](https://github.com/zendframework/zend-code/pull/101) avoid
58+
calling `isInternalPhpType` twice in the `TypeGenerator`
59+
- [#115](https://github.com/zendframework/zend-code/pull/115) Replaced
60+
assertions in the test suite with their static counterparts where
61+
applicable
62+
- [#120](https://github.com/zendframework/zend-code/pull/120)
63+
[#109](https://github.com/zendframework/zend-code/pull/109)
64+
[#100](https://github.com/zendframework/zend-code/pull/100) Applied
65+
ZendFramework coding standard to the library code
66+
- [#119](https://github.com/zendframework/zend-code/pull/119) Corrected
67+
test suite errors caused by mismatching parameter order
68+
- [#106](https://github.com/zendframework/zend-code/pull/106)
69+
- [#107](https://github.com/zendframework/zend-code/pull/107) Minor
70+
typing error corrections in documentation and error messages
4071

4172
## 3.1.0 - 2016-10-24
4273

CONTRIBUTING.md

+17-28
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,30 @@ For sensitive email communications, please use [our PGP key](http://framework.ze
3636

3737
## RUNNING TESTS
3838

39-
> ### Note: testing versions prior to 2.4
40-
>
41-
> This component originates with Zend Framework 2. During the lifetime of ZF2,
42-
> testing infrastructure migrated from PHPUnit 3 to PHPUnit 4. In most cases, no
43-
> changes were necessary. However, due to the migration, tests may not run on
44-
> versions < 2.4. As such, you may need to change the PHPUnit dependency if
45-
> attempting a fix on such a version.
46-
4739
To run tests:
4840

4941
- Clone the repository:
5042

5143
```console
52-
$ git clone git@github.com:zendframework/zend-code.git
53-
$ cd
44+
$ git clone git://github.com/zendframework/zend-code.git
45+
$ cd zend-code
5446
```
5547

5648
- Install dependencies via composer:
5749

5850
```console
59-
$ curl -sS https://getcomposer.org/installer | php --
60-
$ ./composer.phar install
51+
$ composer install
6152
```
6253

63-
If you don't have `curl` installed, you can also download `composer.phar` from https://getcomposer.org/
54+
If you don't have `composer` installed, please download it from https://getcomposer.org/download/
6455

65-
- Run the tests via `phpunit` and the provided PHPUnit config, like in this example:
56+
- Run the tests using the "test" command shipped in the `composer.json`:
6657

6758
```console
68-
$ ./vendor/bin/phpunit
59+
$ composer test
6960
```
7061

71-
You can turn on conditional tests with the phpunit.xml file.
62+
You can turn on conditional tests with the `phpunit.xml` file.
7263
To do so:
7364

7465
- Copy `phpunit.xml.dist` file to `phpunit.xml`
@@ -77,24 +68,22 @@ To do so:
7768

7869
## Running Coding Standards Checks
7970

80-
This component uses [php-cs-fixer](http://cs.sensiolabs.org/) for coding
81-
standards checks, and provides configuration for our selected checks.
82-
`php-cs-fixer` is installed by default via Composer.
71+
First, ensure you've installed dependencies via composer, per the previous
72+
section on running tests.
8373

84-
To run checks only:
74+
To run CS checks only:
8575

8676
```console
87-
$ ./vendor/bin/php-cs-fixer fix . -v --diff --dry-run --config-file=.php_cs
77+
$ composer cs-check
8878
```
8979

90-
To have `php-cs-fixer` attempt to fix problems for you, omit the `--dry-run`
91-
flag:
80+
To attempt to automatically fix common CS issues:
9281

9382
```console
94-
$ ./vendor/bin/php-cs-fixer fix . -v --diff --config-file=.php_cs
83+
$ composer cs-fix
9584
```
9685

97-
If you allow php-cs-fixer to fix CS issues, please re-run the tests to ensure
86+
If the above fixes any CS issues, please re-run the tests to ensure
9887
they pass, and make sure you add and commit the changes after verification.
9988

10089
## Recommended Workflow for Contributions
@@ -103,12 +92,12 @@ Your first step is to establish a public repository from which we can
10392
pull your work into the master repository. We recommend using
10493
[GitHub](https://github.com), as that is where the component is already hosted.
10594

106-
1. Setup a [GitHub account](http://github.com/), if you haven't yet
107-
2. Fork the repository (http://github.com/zendframework/zend-code)
95+
1. Setup a [GitHub account](https://github.com/), if you haven't yet
96+
2. Fork the repository (https://github.com/zendframework/zend-code)
10897
3. Clone the canonical repository locally and enter it.
10998

11099
```console
111-
$ git clone git://github.com:zendframework/zend-code.git
100+
$ git clone git://github.com/zendframework/zend-code.git
112101
$ cd zend-code
113102
```
114103

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
}
1414
},
1515
"require": {
16-
"php": "^5.6 || 7.0.0 - 7.0.4 || ^7.0.6",
16+
"php": "^7.1",
1717
"zendframework/zend-eventmanager": "^2.6 || ^3.0"
1818
},
1919
"require-dev": {
2020
"ext-phar": "*",
2121
"doctrine/annotations": "~1.0",
2222
"zendframework/zend-stdlib": "^2.7 || ^3.0",
23-
"squizlabs/php_codesniffer": "^2.5",
24-
"phpunit/PHPUnit": "^4.8.21"
23+
"phpunit/phpunit": "^6.2.3",
24+
"zendframework/zend-coding-standard": "^1.0.0"
2525
},
2626
"suggest": {
2727
"doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features",

0 commit comments

Comments
 (0)