Skip to content

Commit d1f76f6

Browse files
committed
Laravel 12
1 parent 2cd4853 commit d1f76f6

File tree

9 files changed

+15
-17
lines changed

9 files changed

+15
-17
lines changed

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
coverage: pcov
2222

2323
- name: Install dependencies
24-
uses: ramsey/composer-install@v2
24+
uses: ramsey/composer-install@v3
2525
with:
2626
composer-options: "--prefer-dist"
2727

.github/workflows/code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: aglipanci/laravel-pint-action@latest
2323

2424
- name: Commit changes
25-
uses: stefanzweifel/git-auto-commit-action@v4
25+
uses: stefanzweifel/git-auto-commit-action@v5
2626
with:
2727
commit_message: Fix styling
2828
env:

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
coverage: none
2222

2323
- name: Install composer dependencies
24-
uses: ramsey/composer-install@v2
24+
uses: ramsey/composer-install@v3
2525

2626
- name: Run PHPStan
2727
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
php: ['8.2', '8.3']
18+
php: ['8.2', '8.3', '8.4']
1919
dependencies: [lowest, highest]
2020
experimental: [false]
2121

@@ -38,7 +38,7 @@ jobs:
3838
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3939
4040
- name: Install dependencies
41-
uses: ramsey/composer-install@v2
41+
uses: ramsey/composer-install@v3
4242
with:
4343
dependency-versions: ${{ matrix.dependencies }}
4444
composer-options: --prefer-dist ${{ matrix.composer-options }}

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
release-notes: ${{ github.event.release.body }}
2222

2323
- name: Commit updated CHANGELOG
24-
uses: stefanzweifel/git-auto-commit-action@v4
24+
uses: stefanzweifel/git-auto-commit-action@v5
2525
with:
2626
branch: master
2727
commit_message: Update CHANGELOG

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ All notable changes to `telegram` will be documented in this file
88

99
* Drop support for Laravel 10.
1010
* Drop support for PHP 8.1.
11+
* Add support for Laravel 12.
1112
* Add `sendWhen` method to conditionally send a message.
1213
* Add ParseMode Enum and refactor parsing mode setting logic.
1314
* Add `buttonWithWebApp` method to open web app from a button.

composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,19 @@
2222
"php": "^8.2",
2323
"ext-json": "*",
2424
"guzzlehttp/guzzle": "^7.8",
25-
"illuminate/contracts": "^11.0",
26-
"illuminate/notifications": "^11.0",
27-
"illuminate/support": "^11.0"
25+
"illuminate/contracts": "^11.0 || ^12.0",
26+
"illuminate/notifications": "^11.0 || ^12.0",
27+
"illuminate/support": "^11.0 || ^12.0"
2828
},
2929
"require-dev": {
30-
"larastan/larastan": "^2.9",
30+
"larastan/larastan": "^3.0",
3131
"mockery/mockery": "^1.4.4",
32-
"orchestra/testbench": "^8.0 || ^9.0",
32+
"orchestra/testbench": "^10.0",
3333
"pestphp/pest": "^3.0",
3434
"pestphp/pest-plugin-laravel": "^3.0",
3535
"phpstan/extension-installer": "^1.2",
36-
"phpstan/phpstan-deprecation-rules": "^1.1",
37-
"phpstan/phpstan-phpunit": "^1.3",
38-
"phpunit/phpunit": "^11.0"
36+
"phpstan/phpstan-deprecation-rules": "^2.0",
37+
"phpstan/phpstan-phpunit": "^2.0"
3938
},
4039
"minimum-stability": "dev",
4140
"prefer-stable": true,

src/TelegramMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function chunkStrings(string $value, int $limit = self::DEFAULT_CHUNK_SI
152152
$output = explode(self::CHUNK_SEPARATOR, wordwrap($value, $limit, self::CHUNK_SEPARATOR));
153153

154154
return count($output) <= 1
155-
? mb_str_split($value, $limit, 'UTF-8') ?? [$value]
155+
? mb_str_split($value, $limit, 'UTF-8')
156156
: $output;
157157
}
158158
}

src/Traits/HasSharedLogic.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
* Trait HasSharedLogic
1414
*
1515
* Provides shared functionality for Telegram message handling.
16-
*
17-
* @template TReturn of static
1816
*/
1917
trait HasSharedLogic
2018
{

0 commit comments

Comments
 (0)