From e9a31f7ce60dd63eefd2aa6053474b1b137a0b10 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 8 Jan 2017 17:59:24 +0100 Subject: [PATCH] More missing properties --- phpstan.neon | 3 +++ src/Http/Client/Message.php | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index 9bf48c7d1d9..ae373be572e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -12,6 +12,9 @@ parameters: - '#Access to undefined constant Memcached::DYNAMIC_CLIENT_MODE#' - '#Access to undefined constant PDO::SQLSRV_ATTR_ENCODING#' - '#Access to undefined constant PDO::SQLSRV_ENCODING_BINARY#' + - '#Access to an undefined property Cake\\Http\\Client\\Message::\$headers#' + - '#Access to an undefined property Cake\\[a-zA-Z0-9_\\]+::\$_validViewOptions#' + - '#Access to an undefined property Cake\\Database\\Driver::\$_connection#' earlyTerminatingMethodCalls: Cake\Shell\Shell: - abort diff --git a/src/Http/Client/Message.php b/src/Http/Client/Message.php index 0afc4d2b442..f5e109ffa71 100644 --- a/src/Http/Client/Message.php +++ b/src/Http/Client/Message.php @@ -134,6 +134,13 @@ class Message */ protected $_cookies = []; + /** + * Body for the message. + * + * @var string|null + */ + protected $_body; + /** * Get all headers *