Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suporte ao PHP 8 #65

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ tmp/**

/vendor/
composer.lock

.idea
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: php
php:
- '7.1'
- 7.1
- 7.2
- 8.0

before_install:
- composer install
- composer install --prefer-dist --no-interaction
script:
- composer tests
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^6",
"phpunit/phpunit": "^6 || ^7 || ^8",
"php-vcr/php-vcr": "^1.4"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions lib/exemplos.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// exemplo de uso da classe BankVerification
Iugu::setApiKey($user_token); // Chave do user
Iugu::setApiKey('api-key'); // Chave do user
$updateBank = Iugu_BankVerification::create(Array(
"agency" => '9999-9',
"account" => '999999-9',
Expand Down Expand Up @@ -62,7 +62,7 @@
Iugu::setApiKey('TOKEN_IUGU'); // Chave do user
$transfer = Iugu_Transfer::create(Array(
"receiver_id" => "CLIENT_ID", // chave da conta mestre ou da conta recebedora
"amount_cents" => $numValorCentavos
"amount_cents" => 4000 // valor em centavos = R$ 40,00
));


Expand Down
2 changes: 1 addition & 1 deletion tests/Iugu/CustomerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

final class Iugu_CustomerTest extends TestCase
{
protected function setUp()
protected function setUp(): void
{
Iugu::$endpoint = "http://api.desenvolvimento";
Iugu::setApiKey("development_api_token");
Expand Down