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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" : {
Expand Down
4 changes: 2 additions & 2 deletions src/main/php/text/TextTokenizer.class.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace text;

use io\IOException;
use io\OperationFailed;
use io\streams\Reader;
use lang\IllegalStateException;

Expand Down Expand Up @@ -31,7 +31,7 @@ public function reset() {
if ('' !== $this->_buf) {
try {
$this->source->reset();
} catch (IOException $e) {
} catch (OperationFailed $e) {
throw new IllegalStateException('Cannot reset', $e);
}
}
Expand Down
Loading