Skip to content

Commit 56f434e

Browse files
committed
Support PHP8. Resolved #34
1 parent e6e4c2f commit 56f434e

19 files changed

+96
-996
lines changed

.gitattributes

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
/tests export-ignore
44
.gitattributes export-ignore
55
.gitignore export-ignore
6-
.scrutinizer.yml export-ignore
7-
.travis.yml export-ignore
86
phpunit.php export-ignore
97
phpunit.xml.dist export-ignore
108
phpunit.xml export-ignore
11-
.php_cs export-ignore
9+
.php-cs-fixer.php export-ignore

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
*.DS_Store
22
/vendor
33
/coverage
4-
sftp-config.json
54
composer.lock
65
.subsplit
7-
.php_cs.cache
86
index.php
97
.phplint-cache
8+
.php-cs-fixer-cache

.php_cs renamed to .php-cs-fixer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22

3-
return PhpCsFixer\Config::create()
3+
return (new PhpCsFixer\Config())
44
->setRules([
5-
'@PSR2' => true,
5+
'@PSR12' => true,
66
'binary_operator_spaces' => true,
77
'blank_line_after_opening_tag' => true,
88
'compact_nullable_typehint' => true,
99
'declare_equal_normalize' => true,
1010
'lowercase_cast' => true,
1111
'lowercase_static_reference' => true,
1212
'new_with_braces' => true,
13-
'no_unused_imports' => true,
1413
'no_blank_lines_after_class_opening' => true,
1514
'no_leading_import_slash' => true,
1615
'no_whitespace_in_blank_line' => true,
16+
'no_unused_imports' => true,
1717
'ordered_class_elements' => [
1818
'order' => [
1919
'use_trait',

.travis.yml

-14
This file was deleted.

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"description": "A simple http client wrapper.",
44
"type": "library",
55
"require": {
6-
"php": ">=7.0",
7-
"guzzlehttp/guzzle": "^6.3 || ^7.0",
6+
"php": ">=8.0.2",
7+
"guzzlehttp/guzzle": "^7.4",
88
"ext-curl": "*",
99
"ext-json": "*",
1010
"ext-simplexml": "*",
1111
"ext-libxml": "*"
1212
},
1313
"require-dev": {
14-
"phpunit/phpunit": "^6.5 || ^8.5",
14+
"phpunit/phpunit": "^9.5",
1515
"mockery/mockery": "^1.0",
16-
"overtrue/phplint": "^1.1 || ^2.0 || ^3.0",
16+
"overtrue/phplint": "^3.0",
1717
"brainmaestro/composer-git-hooks": "^2.7",
18-
"friendsofphp/php-cs-fixer": "^2.15 || ^3.0"
18+
"friendsofphp/php-cs-fixer": "^3.0"
1919
},
2020
"autoload": {
2121
"psr-4": {
@@ -39,8 +39,8 @@
3939
"cghooks update"
4040
],
4141
"cghooks": "vendor/bin/cghooks",
42-
"check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php_cs --dry-run --ansi",
43-
"fix-style": "php-cs-fixer fix --using-cache=no --config=.php_cs --ansi",
42+
"check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
43+
"fix-style": "php-cs-fixer fix --using-cache=no --ansi",
4444
"test": "vendor/bin/phpunit --colors=always"
4545
},
4646
"scripts-descriptions": {

0 commit comments

Comments
 (0)