Browse Source

More missing properties

Ondrej Mirtes 9 years ago
parent
commit
e9a31f7ce6
2 changed files with 10 additions and 0 deletions
  1. 3 0
      phpstan.neon
  2. 7 0
      src/Http/Client/Message.php

+ 3 - 0
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

+ 7 - 0
src/Http/Client/Message.php

@@ -135,6 +135,13 @@ class Message
     protected $_cookies = [];
 
     /**
+     * Body for the message.
+     *
+     * @var string|null
+     */
+    protected $_body;
+
+    /**
      * Get all headers
      *
      * @return array