Skip to content

Commit 6d4958d

Browse files
committed
Update version support range in README
1 parent e7720ae commit 6d4958d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
Add support for method calls on primitive types in PHP
22
=====================================================
33

4-
> **NOTE**: The master branch of this extension implements a new calling
5-
> convention using an extra parameter. For the previous `$this` based
6-
> version see the [version 0.1][version_0_1] branch.
7-
84
This extension implements the ability to register a class that handles the
95
method calls to a certain primitive type (string, array, ...). As such it
106
allows implementing APIs like `$str->length()`.
@@ -62,7 +58,8 @@ load these APIs just include the `handlers/bootstrap.php` file.
6258
Installation
6359
------------
6460

65-
This extension supports PHP versions 5.4 to 7.2.
61+
The master branch supports PHP version 7.0 to 8.0. Use the [version 0.2][version_0_2]
62+
branch for PHP 5 support.
6663

6764
### Unix
6865

@@ -95,12 +92,10 @@ Limitations
9592

9693
This extension has a number of limitations:
9794

98-
* On PHP 5 it is not possible to write `"str"->method()` or `[...]->method()` or
99-
`(...)->method()`. This is a restriction of the PHP parser that can not be changed through an
100-
extension. On PHP 7 this syntax *is* supported.
10195
* Due to technical limitations, it is not possible to create *mutable* APIs for primitive
10296
types. Modifying `$self` within the methods is not possible (or rather, will have no effect,
10397
as you'd just be changing a copy).
10498

10599
[windows_dlls]: http://windows.php.net/downloads/pecl/snaps/scalar_objects/20170414/
100+
[version_0_2]: https://github.com/nikic/scalar_objects/tree/0.2
106101
[version_0_1]: https://github.com/nikic/scalar_objects/tree/0.1

0 commit comments

Comments
 (0)