Skip to content

Commit d9c6655

Browse files
committed
support PHP 8.1
1 parent 45e0922 commit d9c6655

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/test.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: '${{ matrix.os }}'
1111
strategy:
1212
matrix:
13-
php: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
13+
php: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1414
os: ['ubuntu-latest']
1515
failure: [false]
1616
include:
17-
- { php: '8.1', os: 'ubuntu-latest', failure: true } # '8.1' means 'nightly'
17+
- { php: '8.2', os: 'ubuntu-latest', failure: true } # '8.2' means 'nightly'
1818
steps:
1919
- name: 'Checkout'
2020
uses: 'actions/checkout@v2'

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Each part is described in the dedicated section in this document.
3131

3232
## Installation
3333

34-
There are no required dependencies and all PHP versions from 5.3 up to latest 7.4 [are tested](https://travis-ci.org/thunderer/Shortcode) and supported. This library is available on Composer/Packagist as `thunderer/shortcode`, to install it execute:
34+
There are no required dependencies and all PHP versions from 5.3 up to latest 8.1 [are tested](https://github.com/thunderer/Shortcode/actions/workflows/test.yaml) and supported. This library is available on Composer/Packagist as `thunderer/shortcode`, to install it execute:
3535

3636
```
3737
composer require thunderer/shortcode=^0.7

‎src/Processor/Processor.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ private function processHandler(ParsedShortcodeInterface $parsed, ProcessorConte
162162
}
163163

164164
$state = $parsed->getText();
165+
/** @psalm-suppress RedundantCast */
165166
$length = (int)mb_strlen($processed->getTextContent(), 'utf-8');
166167
$offset = (int)mb_strrpos($state, $processed->getTextContent(), 0, 'utf-8');
167168

0 commit comments

Comments
 (0)