From 149f3bf66c5118dc7476758c3a5cad2b9ca26d1f Mon Sep 17 00:00:00 2001 From: Swapnil Sarwe Date: Sat, 21 Mar 2026 18:28:19 +0530 Subject: [PATCH] laravel 13 compatibility --- .composer.json.swp | Bin 12288 -> 0 bytes .github/workflows/tests.yml | 20 ++++++++++++++++++-- composer.json | 8 ++++---- tests/CompilesIconsTest.php | 10 +++++----- 4 files changed, 27 insertions(+), 11 deletions(-) delete mode 100644 .composer.json.swp diff --git a/.composer.json.swp b/.composer.json.swp deleted file mode 100644 index 4f540f83523b2ea36f59c1a266bf08102a509fc6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2&u<(x6vtgIKq36<1&NC>5(p_XyCJl+Jwbp&q(&g6$%X9-?~FI=?(BGKdp220 z$^}*8z=8jOzW^j8lpB8p;)2vGRI0=k!~w+j&5zwQ&9*lrkS%>@)-%uV`F;F6QWOum zyPI45Qru-|&oOrN?H%>iz1N>O_ZwqwUlzH}Vn^>D(zax>Va%9s*Y-;-Z_OQc_Kh98 zLMAH4)jBmO^E6YPRC?JNWHMEePE78a-(_C+5;G}`Q#QWtOujTsco7H$0w)QSei&U` zVe4foUJf#a$KIBzv7P8#Ps&O4 zPG{QBXd8r^+rskQY%jk7+(1vDUH3q?J>Z&1WRkfwywr zT{=N=6>wdz2g{1HTZ9vZv(cM#7ebcaWJabD!Fpuo%QB@v&L)ozQ-wG-Z-EM-HK$6c z)*g=fILrKLf2|vz$8|043gWSVVr()(dRBI*ga#^4MijpP7LB?{7mRP#okohJUL6X7 zT6BJvRqHPL_h4Fe^ioG-&{#~R4!jm$pqV0r$`i6YF%LYhi}u>0((f-?F)|ZX zpytWL$os-w?sQVCm7D6^yBH_47t2?1%jKjpevgd!E?G5E>2)2BejQ7lx~B$e&W$^1 z_tir}HRsRyHrYK8jEZ$+s%lN3f*bzp&?%H)^_Yz z&2X|ktu~_ApzSPHxj<>sVRrg?rP-4WXnbVq?-Xi<$iBmyPYd^kE9rDL;}bbnymX42 jA@7Oy^B}m+`OK7-H!gV7a+nm;U diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d2e57f5..6533704 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,8 +10,8 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4] - laravel: [8, 9, 10, 11, 12] + php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4, 8.5] + laravel: [8, 9, 10, 11, 12, 13] exclude: - php: 7.4 laravel: 9 @@ -43,6 +43,22 @@ jobs: laravel: 9 - php: 8.4 laravel: 10 + - php: 8.5 + laravel: 8 + - php: 8.5 + laravel: 9 + - php: 8.5 + laravel: 10 + - php: 8.5 + laravel: 11 + - php: 7.4 + laravel: 13 + - php: '8.0' + laravel: 13 + - php: 8.1 + laravel: 13 + - php: 8.2 + laravel: 13 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 59bec1a..a8502ec 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ "require": { "php": "^7.4|^8.0", "blade-ui-kit/blade-icons": "^1.1", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0" }, "require-dev": { - "codeat3/blade-icon-generation-helpers": "^0.10", + "codeat3/blade-icon-generation-helpers": "^0.12", "codeat3/phpcs-styles": "^1.0", - "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^9.0|^10.5|^11.0" + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "phpunit/phpunit": "^9.0|^10.5|^11.0|^12.0" }, "autoload": { "psr-4": { diff --git a/tests/CompilesIconsTest.php b/tests/CompilesIconsTest.php index 4402602..97672be 100644 --- a/tests/CompilesIconsTest.php +++ b/tests/CompilesIconsTest.php @@ -12,7 +12,7 @@ class CompilesIconsTest extends TestCase { /** @test */ - public function it_compiles_a_single_anonymous_component() + public function test_it_compiles_a_single_anonymous_component() { $result = svg('uni-paperclip')->toHtml(); @@ -25,7 +25,7 @@ public function it_compiles_a_single_anonymous_component() } /** @test */ - public function it_can_add_classes_to_icons() + public function test_it_can_add_classes_to_icons() { $result = svg('uni-paperclip', 'w-6 h-6 text-gray-500')->toHtml(); @@ -37,7 +37,7 @@ public function it_can_add_classes_to_icons() } /** @test */ - public function it_can_add_styles_to_icons() + public function test_it_can_add_styles_to_icons() { $result = svg('uni-paperclip', ['style' => 'color: #555'])->toHtml(); @@ -49,7 +49,7 @@ public function it_can_add_styles_to_icons() } /** @test */ - public function it_can_add_default_class_from_config() + public function test_it_can_add_default_class_from_config() { Config::set('blade-unicons.class', 'awesome'); @@ -64,7 +64,7 @@ public function it_can_add_default_class_from_config() } /** @test */ - public function it_can_merge_default_class_from_config() + public function test_it_can_merge_default_class_from_config() { Config::set('blade-unicons.class', 'awesome');