Skip to content

Commit

Permalink
Remove pre-PHP 7.4 wording
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed May 24, 2024
1 parent 84b2a7a commit 478a9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ It determines the most appropriate method to export your object, in this order:

You can disable exporting objects this way, even if they implement `__set_state()`, using the [`NO_SET_STATE`](#varexporterno_set_state) option.

- If your class has `__serialize()` and `__unserialize()` methods ([introduced in PHP 7.4](https://wiki.php.net/rfc/custom_object_serialization), but this library accepts them in previous versions of PHP!), `VarExporter` uses the output of `__serialize()` to export the object, and gives it as input to `__unserialize()` to reconstruct the object:
- If your class has `__serialize()` and `__unserialize()` methods, `VarExporter` uses the output of `__serialize()` to export the object, and gives it as input to `__unserialize()` to reconstruct the object:

```php
(static function() {
Expand Down

0 comments on commit 478a9d9

Please sign in to comment.