@@ -55,19 +55,19 @@ class DbCache_WpdbLegacy extends DbCache_WpdbBase {
5555 /**
5656 * Constructor for initializing the DbCache_WpdbLegacy class.
5757 *
58- * @param array|null $processors Array of processors to initialize.
58+ * @param array $processors Array of processors to initialize.
5959 *
60- * @throws Exception If the processors parameter is invalid.
60+ * @throws \ Exception If the processors parameter is invalid.
6161 *
6262 * @return void
6363 */
64- public function __construct ( $ processors = null ) {
64+ public function __construct ( $ processors = array () ) {
6565 // required to initialize $use_mysqli which is private.
6666 parent ::__construct ( '' , '' , '' , '' );
6767
6868 // cant force empty parameter list due to wp requirements.
6969 if ( ! is_array ( $ processors ) ) {
70- throw new Exception ( esc_html__ ( 'Called incorrectly, use instance(). ' , 'w3-total-cache ' ) );
70+ throw new \ Exception ( esc_html__ ( 'Called incorrectly, use instance(). ' , 'w3-total-cache ' ) );
7171 }
7272
7373 $ this ->processors = $ processors ;
@@ -101,9 +101,8 @@ public function on_w3tc_plugins_loaded() {
101101 /**
102102 * Modifies the footer comment for W3TC.
103103 *
104- * @param string $strings The footer comment strings.
105- *
106- * @return string Modified footer comment strings.
104+ * @param array $strings The footer comment strings.
105+ * @return array Modified footer comment strings.
107106 */
108107 public function w3tc_footer_comment ( $ strings ) {
109108 foreach ( $ this ->processors as $ processor ) {
0 commit comments