Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit d370ee7

Browse files
committed
bump minimum PHP version
1 parent 57ab8ca commit d370ee7

File tree

14 files changed

+52
-34
lines changed

14 files changed

+52
-34
lines changed

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ return PhpCsFixer\Config::create()
3434
'no_empty_phpdoc' => true,
3535
'no_empty_comment' => true,
3636
'no_leading_import_slash' => true,
37+
'no_superfluous_phpdoc_tags' => true,
3738
'no_trailing_comma_in_singleline_array' => true,
3839
'no_superfluous_phpdoc_tags' => true,
3940
'no_unused_imports' => true,

.travis.yml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,49 @@ language: php
22

33
sudo: false
44

5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
env:
10+
global:
11+
- COMPOSER_ARGS="--no-interaction --prefer-source --no-suggest"
12+
513
matrix:
614
include:
7-
- php: 7.1
8-
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=false
915
- php: 7.2
10-
env: COLLECT_COVERAGE=true VALIDATE_CODING_STYLE=true RUN_PHPSTAN=true IGNORE_PLATFORMS=false
16+
env:
17+
- COLLECT_COVERAGE=true
18+
- IGNORE_PLATFORMS=false
19+
- RUN_PHPSTAN=true
20+
- VALIDATE_CODING_STYLE=true
1121
- php: 7.3
12-
env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=true
22+
env:
23+
- COLLECT_COVERAGE=true
24+
- IGNORE_PLATFORMS=true
25+
- RUN_PHPSTAN=true
26+
- VALIDATE_CODING_STYLE=false
1327
- php: nightly
14-
env: COLLECT_COVERAGE=false VALIDATE_CODING_STYLE=false RUN_PHPSTAN=false IGNORE_PLATFORMS=true
28+
env:
29+
- COLLECT_COVERAGE=false
30+
- IGNORE_PLATFORMS=true
31+
- RUN_PHPSTAN=true
32+
- VALIDATE_CODING_STYLE=false
1533
allow_failures:
1634
- php: nightly
1735
fast_finish: true
1836

19-
cache:
20-
directories:
21-
- $HOME/.composer/cache
22-
2337
before_install:
2438
- travis_retry composer self-update
2539

2640
install:
27-
- if [ "$IGNORE_PLATFORMS" == "true" ]; then travis_retry composer update --no-interaction --prefer-source --ignore-platform-reqs; fi
28-
- if [ "$IGNORE_PLATFORMS" == "false" ]; then travis_retry composer update --no-interaction --prefer-source; fi
41+
- if [ "$IGNORE_PLATFORMS" == "true" ]; then travis_retry composer update $COMPOSER_ARGS --ignore-platform-reqs; fi
42+
- if [ "$IGNORE_PLATFORMS" == "false" ]; then travis_retry composer update $COMPOSER_ARGS; fi
2943

3044
script:
31-
- composer phpunit
32-
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi
3345
- if [ "$RUN_PHPSTAN" == "true" ]; then composer phpstan; fi
46+
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi
47+
- composer phpunit
3448

3549
after_script:
3650
- if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ System Requirements
2727

2828
You need:
2929

30-
- **PHP >= 7.1.3** but the latest stable version of PHP is recommended
30+
- **PHP >= 7.2.0** but the latest stable version of PHP is recommended
3131

3232
Installation
3333
--------

benchmark/build.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* League.Uri (http://uri.thephpleague.com).
4+
* League.Uri (http://uri.thephpleague.com)
55
*
66
* @author Ignace Nyamagana Butera <[email protected]>
77
* @license https://github.com/thephpleague/uri-query-parser/blob/master/LICENSE (MIT License)
@@ -11,6 +11,7 @@
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
14+
1415
require __DIR__.'/../src/Parser/QueryString.php';
1516

1617
$pairs = [['module', 'home'], ['action', 'show'], ['page', 3]];

benchmark/extract.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* League.Uri (http://uri.thephpleague.com).
4+
* League.Uri (http://uri.thephpleague.com)
55
*
66
* @author Ignace Nyamagana Butera <[email protected]>
77
* @license https://github.com/thephpleague/uri-query-parser/blob/master/LICENSE (MIT License)
@@ -11,6 +11,7 @@
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
14+
1415
require __DIR__.'/../src/Parser/QueryString.php';
1516

1617
$query = 'module=home&action=show&page=3';

benchmark/parse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* League.Uri (http://uri.thephpleague.com).
4+
* League.Uri (http://uri.thephpleague.com)
55
*
66
* @author Ignace Nyamagana Butera <[email protected]>
77
* @license https://github.com/thephpleague/uri-query-parser/blob/master/LICENSE (MIT License)
@@ -11,6 +11,7 @@
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
14+
1415
require __DIR__.'/../src/Parser/QueryString.php';
1516

1617
$query = 'module=home&action=show&page=3';

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
] ,
2222
"require": {
23-
"php": ">=7.1.3"
23+
"php": ">=7.2.0"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^2.3",
@@ -45,8 +45,8 @@
4545
},
4646
"scripts": {
4747
"phpcs": "php-cs-fixer fix -v --diff --dry-run --allow-risky=yes;",
48-
"phpstan-src": "phpstan analyse -l 7 -c phpstan.src.neon src",
49-
"phpstan-tests": "phpstan analyse -l 7 -c phpstan.tests.neon tests",
48+
"phpstan-src": "phpstan analyse -l max -c phpstan.src.neon src",
49+
"phpstan-tests": "phpstan analyse -l max -c phpstan.tests.neon tests",
5050
"phpstan": [
5151
"@phpstan-src",
5252
"@phpstan-tests"

phpunit.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
<filter>
2121
<whitelist>
2222
<directory suffix=".php">src</directory>
23-
<exclude>
24-
<directory suffix="include.php">src</directory>
25-
</exclude>
2623
</whitelist>
2724
</filter>
2825

src/Exception/InvalidQueryPair.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* League.Uri (http://uri.thephpleague.com).
4+
* League.Uri (http://uri.thephpleague.com)
55
*
66
* @author Ignace Nyamagana Butera <[email protected]>
77
* @license https://github.com/thephpleague/uri-query-parser/blob/master/LICENSE (MIT License)

src/Exception/InvalidUriComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* League.Uri (http://uri.thephpleague.com).
4+
* League.Uri (http://uri.thephpleague.com)
55
*
66
* @author Ignace Nyamagana Butera <[email protected]>
77
* @license https://github.com/thephpleague/uri-query-parser/blob/master/LICENSE (MIT License)

0 commit comments

Comments
 (0)