summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-01-07 12:28:51 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-01-11 15:49:06 +0100
commite219ec144ef6682b71e135fd18654ee1bb4676b4 (patch)
treee4a3ae2b619cdc9fe50ee8e1fa5adb99d804dddf /UPGRADING
parentfe8fdfa3bd588d80ce60f6b3848058239e0a760f (diff)
downloadphp-git-e219ec144ef6682b71e135fd18654ee1bb4676b4.tar.gz
Implement typed properties
RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING14
1 files changed, 13 insertions, 1 deletions
diff --git a/UPGRADING b/UPGRADING
index 835335bb07..be5d6ea0e6 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -78,8 +78,20 @@ PHP 7.4 UPGRADE NOTES
2. New Features
========================================
+- Core:
+ . Added support for typed properties. For example:
+
+ class User {
+ public int $id;
+ public string $name;
+ }
+
+ This will enforce that $user->id can only be assigned integer and
+ $user->name can only be assigned strings. For more information see the
+ RFC: https://wiki.php.net/rfc/typed_properties_v2
+
- PDO_OCI:
- . PDOStatement::getColumnMeta is now available
+ . PDOStatement::getColumnMeta() is now available
- PDO_SQLite:
. PDOStatement::getAttribute(PDO::SQLITE_ATTR_READONLY_STATEMENT) allows to