From d8bd266751028773c8d0f1d85e761ad0141ea72c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Tue, 22 Nov 2022 09:41:52 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Allow=20LEC=20newest=20version=20?= =?UTF-8?q?=F0=9F=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c217ab4..939f468 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "php": "^8.0", "ext-intl": "*", "illuminate/contracts": "^9.7", - "michael-rubel/laravel-enhanced-container": "^9.2", + "michael-rubel/laravel-enhanced-container": "^10.0", "spatie/laravel-package-tools": "^1.12" }, "require-dev": { From 43fef326f275b56619acf91e84d0910cc96d76e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Tue, 22 Nov 2022 09:47:15 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20tests=20=F0=9F=A7=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/MaskStringFormatterTest.php | 2 +- tests/TableColumnFormatterTest.php | 2 +- tests/TaxNumberFormatterTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/MaskStringFormatterTest.php b/tests/MaskStringFormatterTest.php index f9c443b..3aa3559 100644 --- a/tests/MaskStringFormatterTest.php +++ b/tests/MaskStringFormatterTest.php @@ -52,7 +52,7 @@ public function testFormatBehaviorWithNullOrEmpty() /** @test */ public function testCanExtendFormatterBinding() { - extend(MaskStringFormatter::class, function ($formatter) { + $this->app->extend(MaskStringFormatter::class, function ($formatter) { $formatter->string = 'test@example.com'; $formatter->character = '%'; $formatter->index = 5; diff --git a/tests/TableColumnFormatterTest.php b/tests/TableColumnFormatterTest.php index 09f3e8c..13ef9bd 100644 --- a/tests/TableColumnFormatterTest.php +++ b/tests/TableColumnFormatterTest.php @@ -56,7 +56,7 @@ public function testFormatBehaviorWithNullOrEmpty() /** @test */ public function testCanExtendFormatterBinding() { - extend(TableColumnFormatter::class, function ($formatter) { + $this->app->extend(TableColumnFormatter::class, function ($formatter) { $formatter->string = 'created_at'; $this->assertStringContainsString('created_at', $formatter->string); diff --git a/tests/TaxNumberFormatterTest.php b/tests/TaxNumberFormatterTest.php index 2d6e628..1ed82e2 100644 --- a/tests/TaxNumberFormatterTest.php +++ b/tests/TaxNumberFormatterTest.php @@ -159,7 +159,7 @@ public function testFormatBehaviorWithNullOrEmpty() /** @test */ public function testCanExtendTaxNumberFormatter() { - extend(TaxNumberFormatter::class, function ($formatter) { + $this->app->extend(TaxNumberFormatter::class, function ($formatter) { $formatter->tax_number = 'UA0123456789'; $formatter->country = 'UA';