diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee0b658..6d437c7 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,11 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" name: PHP ${{ matrix.php-versions }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.php-versions >= '8.4' }} + continue-on-error: ${{ matrix.php-versions >= '8.6' }} strategy: fail-fast: false matrix: - php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] + php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6'] os: [ubuntu-latest, windows-latest] steps: @@ -49,7 +49,7 @@ jobs: - name: Install dependencies run: > - curl -sSL https://baltocdn.com/xp-framework/xp-runners/distribution/downloads/e/entrypoint/xp-run-8.8.0.sh > xp-run && + curl -sSL https://github.com/xp-runners/reference/releases/download/v9.3.0/xp-run-9.3.0.sh > xp-run && composer install --prefer-dist && echo "vendor/autoload.php" > composer.pth diff --git a/composer.json b/composer.json index 21c451f..b95f007 100755 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "description" : "Text tokenizing", "keywords": ["module", "xp"], "require" : { - "xp-framework/core": "^12.0 | ^11.0 | ^10.0 | ^9.0 | ^8.0 | ^7.0", + "xp-framework/core": "^12.11 | ^11.11", "php" : ">=7.0.0" }, "require-dev" : { diff --git a/src/main/php/text/TextTokenizer.class.php b/src/main/php/text/TextTokenizer.class.php index 68b8b1d..25ee5bd 100755 --- a/src/main/php/text/TextTokenizer.class.php +++ b/src/main/php/text/TextTokenizer.class.php @@ -1,6 +1,6 @@ _buf) { try { $this->source->reset(); - } catch (IOException $e) { + } catch (OperationFailed $e) { throw new IllegalStateException('Cannot reset', $e); } }