Skip to content
Merged
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: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ For questions and discussion, use the author's [Telegram chat](https://t.me/pred

## Development setup

Requirements: 64-bit PHP 8.2–8.5 and [Composer](https://getcomposer.org/download/).
Requirements: 64-bit PHP 8.2–8.6 and [Composer](https://getcomposer.org/download/).

Fork the repository, clone it and run `composer install`.

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- "8.3"
- "8.4"
- "8.5"
- "8.6"

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/composer-dependency-analyser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- "8.3"
- "8.4"
- "8.5"
- "8.6"

steps:
- name: Checkout.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
php: ["8.5"]
php: ["8.6"]

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- "8.3"
- "8.4"
- "8.5"
- "8.6"

steps:
- name: Checkout
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

- Enh #223: Convert the PHP warning raised on failure to read a local file in `NativeTransport` into an exception with
the original error message.
- Enh #229: Replace Psalm with PHPStan for static analysis.
- Enh #230: Add PHP 8.6 support.
- Bug #227: Throw `InvalidArgumentException` on serialization of rich text that contains an element other than
a string, a `RichText` object or an array of them, instead of failing with `TypeError` or silently casting scalars
to strings.
- Bug #227: Discard keys of rich text arrays on serialization, so they are always sent as JSON arrays, not objects.
- Bug #228: Fix "Undefined array key" error in `InputFile::filename()` and `CurlTransport` when a stream resource has
no URI.
- Enh #229: Replace Psalm with PHPStan for static analysis.

## 0.22 August 25, 2026

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The package provides a simple and convenient way to interact with the Telegram B

## Requirements

- PHP (64-bit) 8.2 - 8.5.
- PHP (64-bit) 8.2 - 8.6.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
],
"require": {
"php-64bit": "8.2 - 8.5"
"php-64bit": "8.2 - 8.6"
},
"require-dev": {
"ext-curl": "*",
Expand Down
7 changes: 6 additions & 1 deletion tests/Transport/NativeTransport/NativeTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use function PHPUnit\Framework\assertSame;
use function PHPUnit\Framework\assertStringContainsString;
use function PHPUnit\Framework\assertTrue;
use function sprintf;

final class NativeTransportTest extends TestCase
{
Expand Down Expand Up @@ -239,7 +240,11 @@ public function testReadNonExistentFileThrowsException(): void

$this->expectException(RuntimeException::class);
$this->expectExceptionMessage(
"Failed to read the file $nonExistentPath. file_get_contents($nonExistentPath): Failed to open stream: No such file or directory",
sprintf(
'Failed to read the file %s. %s: Failed to open stream: No such file or directory',
$nonExistentPath,
PHP_VERSION_ID >= 80600 ? 'file_get_contents()' : "file_get_contents($nonExistentPath)",
),
);
$transport->postWithFiles(
'http://url/method',
Expand Down
Loading