Skip to content

Commit

Permalink
PHP to 7 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
cong08 authored Jun 7, 2023
1 parent e85543d commit 78218a9
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ updates:
time: "21:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: phpunit/phpunit
versions:
- "^4.8"
- dependency-name: phpunit/phpunit
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
phpunit:
strategy:
matrix:
php_version: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
php_version: [7.4, 8.0, 8.1]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ phpunit.functional.xml
composer.lock
/vendor
/.idea
/.vscode
/.vscode
.phpunit.result.cache
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=5.6",
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp/guzzle": "^6.2"
"guzzlehttp/guzzle": "^7.0.0",
"guzzlehttp/psr7": "^1.7 || ^2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "~3.7"
},
"autoload": {
Expand Down
14 changes: 10 additions & 4 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>

<testsuites>
<testsuite name="Tests">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">

<coverage includeUncoveredFiles="true"
processUncoveredFiles="true"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="true">
<include>
<directory suffix=".php">src/goplus</directory>
</whitelist>
</include>
<exclude>
<directory suffix=".php">src/lib</directory>
</exclude>
</filter>
</coverage>

</phpunit>
10 changes: 5 additions & 5 deletions src/lib/client/Model/ParseAbiDataRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.45
*/
Expand Down Expand Up @@ -195,10 +195,10 @@ public function getModelName()
public function getTranscationTypeAllowableValues()
{
return [
self::TRANSCATION_TYPE_COMMON
self::TRANSCATION_TYPE_ETH_SIGN_TYPED_DATA_V4
self::TRANSCATION_TYPE_PERSONAL_SIGN
self::TRANSCATION_TYPE_ETH_SIGN
self::TRANSCATION_TYPE_COMMON,
self::TRANSCATION_TYPE_ETH_SIGN_TYPED_DATA_V4,
self::TRANSCATION_TYPE_PERSONAL_SIGN,
self::TRANSCATION_TYPE_ETH_SIGN,
];
}

Expand Down

0 comments on commit 78218a9

Please sign in to comment.