Browse Source

Remove unused properties.

ADmad 6 years ago
parent
commit
fd7d915c7e

+ 1 - 7
psalm-baseline.xml

@@ -884,9 +884,8 @@
     </ImplementedReturnTypeMismatch>
   </file>
   <file src="src/Form/Form.php">
-    <PropertyNotSetInConstructor occurrences="3">
+    <PropertyNotSetInConstructor occurrences="2">
       <code>$_schema</code>
-      <code>$_validator</code>
       <code>Form</code>
     </PropertyNotSetInConstructor>
   </file>
@@ -1626,11 +1625,6 @@
       <code>$this-&gt;_layoutName</code>
     </PossiblyNullArgument>
   </file>
-  <file src="src/TestSuite/LegacyCommandRunner.php">
-    <MissingConstructor occurrences="1">
-      <code>$_io</code>
-    </MissingConstructor>
-  </file>
   <file src="src/TestSuite/LegacyShellDispatcher.php">
     <DeprecatedClass occurrences="2">
       <code>ShellDispatcher</code>

+ 0 - 7
src/Core/Plugin.php

@@ -33,13 +33,6 @@ class Plugin
     protected static $plugins;
 
     /**
-     * Class loader instance
-     *
-     * @var \Cake\Core\ClassLoader
-     */
-    protected static $_loader;
-
-    /**
      * Returns the filesystem path for a plugin
      *
      * @param string $name name of the plugin in CamelCase format

+ 0 - 7
src/Error/Debugger.php

@@ -47,13 +47,6 @@ class Debugger
     ];
 
     /**
-     * A list of errors generated by the application.
-     *
-     * @var array
-     */
-    public $errors = [];
-
-    /**
      * The current output format.
      *
      * @var string

+ 0 - 7
src/Form/Form.php

@@ -79,13 +79,6 @@ class Form implements EventListenerInterface, EventDispatcherInterface, Validato
     protected $_errors = [];
 
     /**
-     * The validator used by this form.
-     *
-     * @var \Cake\Validation\Validator
-     */
-    protected $_validator;
-
-    /**
      * Form's data.
      *
      * @var array

+ 0 - 7
src/Http/Response.php

@@ -348,13 +348,6 @@ class Response implements ResponseInterface
     ];
 
     /**
-     * Protocol header to send to the client
-     *
-     * @var string
-     */
-    protected $_protocol = 'HTTP/1.1';
-
-    /**
      * Status code to send to the client
      *
      * @var int

+ 0 - 5
src/TestSuite/LegacyCommandRunner.php

@@ -24,11 +24,6 @@ use Cake\Console\ConsoleIo;
 class LegacyCommandRunner
 {
     /**
-     * @var \Cake\Console\ConsoleIo
-     */
-    protected $_io;
-
-    /**
      * Mimics functionality of Cake\Console\CommandRunner
      *
      * @param array $argv Argument array

+ 0 - 7
src/TestSuite/TestCase.php

@@ -78,13 +78,6 @@ abstract class TestCase extends BaseTestCase
     protected $_configure = [];
 
     /**
-     * Path settings to restore at the end of the test.
-     *
-     * @var array
-     */
-    protected $_pathRestore = [];
-
-    /**
      * Overrides SimpleTestCase::skipIf to provide a boolean return value
      *
      * @param bool $shouldSkip Whether or not the test should be skipped.