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

Commit b7d2a91

Browse files
committed
Merge branch 'feature/19' into develop
Close #19 Close #21
2 parents 9d98b41 + 3998519 commit b7d2a91

19 files changed

+411
-248
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,23 @@ matrix:
1717
- php: 5.5
1818
env:
1919
- EXECUTE_CS_CHECK=true
20+
- php: 5.5
21+
env:
22+
- SERVICE_MANAGER_VERSION="^2.7.3"
2023
- php: 5.6
2124
env:
2225
- EXECUTE_TEST_COVERALLS=true
26+
- php: 5.6
27+
env:
28+
- SERVICE_MANAGER_VERSION="^2.7.3"
2329
- php: 7
30+
- php: 7
31+
env:
32+
- SERVICE_MANAGER_VERSION="^2.7.3"
2433
- php: hhvm
34+
- php: hhvm
35+
env:
36+
- SERVICE_MANAGER_VERSION="^2.7.3"
2537
allow_failures:
2638
- php: hhvm
2739

@@ -33,6 +45,8 @@ before_install:
3345
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
3446
- composer self-update
3547
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
48+
- if [[ $SERVICE_MANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:$SERVICE_MANAGER_VERSION" ; fi
49+
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi
3650

3751
install:
3852
- travis_retry composer install --no-interaction --ignore-platform-reqs

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
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.0 - TBD
5+
## 2.6.0 - 2016-02-04
66

77
### Added
88

@@ -18,5 +18,8 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- [#15](https://github.com/zendframework/zend-filter/pull/15) updates the
22-
component to use the v3 versions of zend-servicemanager and zend-crypt.
21+
- [#15](https://github.com/zendframework/zend-filter/pull/15),
22+
[#19](https://github.com/zendframework/zend-filter/pull/19), and
23+
[#21](https://github.com/zendframework/zend-filter/pull/21)
24+
update the component to be forwards-compatible with zend-servicemanager v3,
25+
and reduce the number of development dependencies required for testing.

composer.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,22 @@
1313
}
1414
},
1515
"require": {
16-
"php": ">=5.5",
17-
"zendframework/zend-stdlib": "~2.5"
16+
"php": "^5.5 || ^7.0",
17+
"zendframework/zend-stdlib": "^2.7 || ^3.0"
1818
},
1919
"require-dev": {
20-
"zendframework/zend-config": "~2.5",
21-
"zendframework/zend-crypt": "dev-develop as 2.7",
22-
"zendframework/zend-i18n": "~2.5",
23-
"zendframework/zend-loader": "~2.5",
24-
"zendframework/zend-servicemanager": "dev-develop as 2.7",
25-
"zendframework/zend-uri": "~2.5",
20+
"pear/archive_tar": "^1.4",
21+
"zendframework/zend-crypt": "^2.6",
22+
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
23+
"zendframework/zend-uri": "^2.5",
2624
"fabpot/php-cs-fixer": "1.7.*",
2725
"phpunit/PHPUnit": "~4.0"
2826
},
2927
"suggest": {
30-
"zendframework/zend-crypt": "Zend\\Crypt component",
31-
"zendframework/zend-i18n": "Zend\\I18n component",
32-
"zendframework/zend-servicemanager": "Zend\\ServiceManager component",
33-
"zendframework/zend-uri": "Zend\\Uri component for UriNormalize filter"
28+
"zendframework/zend-crypt": "Zend\\Crypt component, for encryption filters",
29+
"zendframework/zend-i18n": "Zend\\I18n component for filters depending on i18n functionality",
30+
"zendframework/zend-servicemanager": "Zend\\ServiceManager component, for using the filter chain functionality",
31+
"zendframework/zend-uri": "Zend\\Uri component, for the UriNormalize filter"
3432
},
3533
"minimum-stability": "dev",
3634
"prefer-stable": true,

src/Callback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Callback extends AbstractFilter
2525
* @param callable|array|Traversable $callbackOrOptions
2626
* @param array $callbackParams
2727
*/
28-
public function __construct($callbackOrOptions, $callbackParams = [])
28+
public function __construct($callbackOrOptions = [], $callbackParams = [])
2929
{
3030
if (is_callable($callbackOrOptions)) {
3131
$this->setCallback($callbackOrOptions);

src/File/Rename.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Rename extends Filter\AbstractFilter
3434
* @param string|array|Traversable $options Target file or directory to be renamed
3535
* @throws Exception\InvalidArgumentException
3636
*/
37-
public function __construct($options)
37+
public function __construct($options = [])
3838
{
3939
if ($options instanceof Traversable) {
4040
$options = ArrayUtils::iteratorToArray($options);

src/File/RenameUpload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class RenameUpload extends AbstractFilter
4040
*
4141
* @param array|string $targetOrOptions The target file path or an options array
4242
*/
43-
public function __construct($targetOrOptions)
43+
public function __construct($targetOrOptions = [])
4444
{
4545
if (is_array($targetOrOptions)) {
4646
$this->setOptions($targetOrOptions);

0 commit comments

Comments
 (0)