Skip to content

Commit a8438a8

Browse files
authored
Merge pull request #49 from SimonFrings/improvement
Support PHP 8.1 and minor clean up
2 parents 327320b + 21dd7a6 commit a8438a8

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ jobs:
1010
strategy:
1111
matrix:
1212
os:
13-
- ubuntu-latest
14-
- windows-latest
13+
- ubuntu-20.04
14+
- windows-2019
1515
php:
16+
- 8.1
1617
- 8.0
1718
- 7.4
1819
- 7.3

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It offers a common SQL interface to process queries to work with its relational
1111
in memory or persist to a simple, portable database file.
1212
Its lightweight design makes it an ideal candidate for an embedded database in
1313
portable (CLI) applications, test environments and much more.
14-
This library provides you a simple API to work with your SQLite database from within PHP.
14+
This library provides a simple API to work with your SQLite database from within PHP.
1515
Because working with SQLite and the underlying filesystem is inherently blocking,
1616
this project is built as a lightweight non-blocking process wrapper around it,
1717
so you can query your data without blocking your main application.
@@ -138,7 +138,7 @@ success or will reject with an `Exception` on error. The SQLite extension
138138
is inherently blocking, so this method will spawn an SQLite worker process
139139
to run all SQLite commands and queries in a separate process without
140140
blocking the main process. On Windows, it uses a temporary network socket
141-
for this communication, on all other platforms it communicates over
141+
for this communication, on all other platforms, it communicates over
142142
standard process I/O pipes.
143143

144144
```php
@@ -221,7 +221,7 @@ will not have to wait for an actual underlying connection.
221221

222222
Depending on your particular use case, you may prefer this method or the
223223
underlying `open()` method which resolves with a promise. For many
224-
simple use cases it may be easier to create a lazy connection.
224+
simple use cases, it may be easier to create a lazy connection.
225225

226226
The `$filename` parameter is the path to the SQLite database file or
227227
`:memory:` to create a temporary in-memory database. As of PHP 7.0.10, an
@@ -257,7 +257,7 @@ $db = $factory->openLazy('users.db', null, ['idle' => 0.1]);
257257
### DatabaseInterface
258258

259259
The `DatabaseInterface` represents a connection that is responsible for
260-
comunicating with your SQLite database wrapper, managing the connection state
260+
communicating with your SQLite database wrapper, managing the connection state
261261
and sending your database queries.
262262

263263
#### exec()
@@ -438,14 +438,14 @@ This project follows [SemVer](https://semver.org/).
438438
This will install the latest supported version:
439439

440440
```bash
441-
$ composer require clue/reactphp-sqlite:^1.1
441+
$ composer require clue/reactphp-sqlite:^1.2
442442
```
443443

444444
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
445445

446446
This project aims to run on any platform and thus only requires `ext-sqlite3` and
447447
supports running on legacy PHP 5.4 through current PHP 8+.
448-
It's *highly recommended to use PHP 7+* for this project.
448+
It's *highly recommended to use the latest supported PHP version* for this project.
449449

450450
This project is implemented as a lightweight process wrapper around the `ext-sqlite3`
451451
PHP extension, so you'll have to make sure that you have a suitable version

src/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct(LoopInterface $loop = null, $binary = null)
7979
* is inherently blocking, so this method will spawn an SQLite worker process
8080
* to run all SQLite commands and queries in a separate process without
8181
* blocking the main process. On Windows, it uses a temporary network socket
82-
* for this communication, on all other platforms it communicates over
82+
* for this communication, on all other platforms, it communicates over
8383
* standard process I/O pipes.
8484
*
8585
* ```php
@@ -181,7 +181,7 @@ public function open($filename, $flags = null)
181181
*
182182
* Depending on your particular use case, you may prefer this method or the
183183
* underlying `open()` method which resolves with a promise. For many
184-
* simple use cases it may be easier to create a lazy connection.
184+
* simple use cases, it may be easier to create a lazy connection.
185185
*
186186
* The `$filename` parameter is the path to the SQLite database file or
187187
* `:memory:` to create a temporary in-memory database. As of PHP 7.0.10, an

0 commit comments

Comments
 (0)