diff --git a/CHANGELOG.md b/CHANGELOG.md index 0493e3b..d4433d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.1.1 + +* Suporte para PHP 7.2 + ## 1.1.0 * Essa é a primeira grande mudança da biblioteca. Lapidamos melhor alguns métodos da classe `Parser`, adicionamos modificadores na classe `Payload` e criamos a classe `Reader` para extrair dados de códigos Pix válidos. diff --git a/composer.json b/composer.json index 84d06d5..271c448 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ } }, "require": { - "php": "^7.1", - "chillerlan/php-qrcode": "^4.3" + "php": "^7.2", + "chillerlan/php-qrcode": "^3.3" }, "require-dev": { "phpunit/phpunit": "^6.4" diff --git a/composer.lock b/composer.lock index ad6e2de..61f05bc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,30 +4,29 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "30f3b3d3a78d3d17ef97625025f685d0", + "content-hash": "b460981e01248cbcb4bc600f68125327", "packages": [ { "name": "chillerlan/php-qrcode", - "version": "4.3.0", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/chillerlan/php-qrcode.git", - "reference": "4968063fb3baeedb658293f89f9673fbf2499a3e" + "reference": "d8bf297e6843a53aeaa8f3285ce04fc349d133d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/chillerlan/php-qrcode/zipball/4968063fb3baeedb658293f89f9673fbf2499a3e", - "reference": "4968063fb3baeedb658293f89f9673fbf2499a3e", + "url": "https://api.github.com/repos/chillerlan/php-qrcode/zipball/d8bf297e6843a53aeaa8f3285ce04fc349d133d6", + "reference": "d8bf297e6843a53aeaa8f3285ce04fc349d133d6", "shasum": "" }, "require": { - "chillerlan/php-settings-container": "^2.1", + "chillerlan/php-settings-container": "^1.2", "ext-mbstring": "*", - "php": "^7.4 || ^8.0" + "php": "^7.2" }, "require-dev": { - "phan/phan": "^3.2.2", - "phpunit/phpunit": "^9.4", + "phpunit/phpunit": "^8.5", "setasign/fpdf": "^1.8.2" }, "suggest": { @@ -59,7 +58,7 @@ "homepage": "https://github.com/chillerlan/php-qrcode/graphs/contributors" } ], - "description": "A QR code generator. PHP 7.4+", + "description": "A QR code generator. PHP 7.2+", "homepage": "https://github.com/chillerlan/php-qrcode", "keywords": [ "phpqrcode", @@ -70,7 +69,7 @@ ], "support": { "issues": "https://github.com/chillerlan/php-qrcode/issues", - "source": "https://github.com/chillerlan/php-qrcode/tree/4.3.0" + "source": "https://github.com/chillerlan/php-qrcode/tree/3.4.0" }, "funding": [ { @@ -82,29 +81,28 @@ "type": "ko_fi" } ], - "time": "2020-11-18T20:49:20+00:00" + "time": "2020-11-18T20:51:41+00:00" }, { "name": "chillerlan/php-settings-container", - "version": "2.1.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/chillerlan/php-settings-container.git", - "reference": "90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5" + "reference": "b9b0431dffd74102ee92348a63b4c33fc8ba639b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5", - "reference": "90ab24a3dc09569bfa0f3dbc3d44bab3aaa2a6c5", + "url": "https://api.github.com/repos/chillerlan/php-settings-container/zipball/b9b0431dffd74102ee92348a63b4c33fc8ba639b", + "reference": "b9b0431dffd74102ee92348a63b4c33fc8ba639b", "shasum": "" }, "require": { "ext-json": "*", - "php": "^7.4 || ^8.0" + "php": "^7.2" }, "require-dev": { - "phan/phan": "^3.2.2", - "phpunit/phpunit": "9.4" + "phpunit/phpunit": "^8.3" }, "type": "library", "autoload": { @@ -123,7 +121,7 @@ "homepage": "https://github.com/codemasher" } ], - "description": "A container class for immutable settings objects. Not a DI container. PHP 7.4+", + "description": "A container class for immutable settings objects. Not a DI container. PHP 7.2+", "homepage": "https://github.com/chillerlan/php-settings-container", "keywords": [ "PHP7", @@ -135,13 +133,7 @@ "issues": "https://github.com/chillerlan/php-settings-container/issues", "source": "https://github.com/chillerlan/php-settings-container" }, - "funding": [ - { - "url": "https://ko-fi.com/codemasher", - "type": "ko_fi" - } - ], - "time": "2020-10-07T13:18:35+00:00" + "time": "2019-09-10T00:09:44+00:00" } ], "packages-dev": [ @@ -1665,16 +1657,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.20.0", + "version": "v1.22.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41" + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e", + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e", "shasum": "" }, "require": { @@ -1686,7 +1678,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1724,7 +1716,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.0" }, "funding": [ { @@ -1740,7 +1732,7 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-01-07T16:49:33+00:00" }, { "name": "theseer/tokenizer", @@ -1797,12 +1789,12 @@ "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", + "url": "https://github.com/webmozarts/assert.git", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, @@ -1840,8 +1832,8 @@ "validate" ], "support": { - "issues": "https://github.com/webmozart/assert/issues", - "source": "https://github.com/webmozart/assert/tree/master" + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.9.1" }, "time": "2020-07-08T17:02:28+00:00" } @@ -1852,7 +1844,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.1" + "php": "^7.2" }, "platform-dev": [], "plugin-api-version": "2.0.0" diff --git a/tests/PayloadTest.php b/tests/PayloadTest.php index ffd521b..ef7552a 100644 --- a/tests/PayloadTest.php +++ b/tests/PayloadTest.php @@ -169,7 +169,7 @@ public function throwExceptionWhenPixKeyNotSet () /** @test */ public function throwExceptionWhenInvalidPixKey () { - $this->expectExceptionMessage('A chave aleatória `0000` está inválida.'); + $this->expectExceptionMessage('O valor `Chave Aleatória` para 0000 está inválido.'); (new Payload()) ->setPixKey($this->pixData['keyType'], '0000')