Skip to content
Permalink
Browse files

Fix strict errors.

  • Loading branch information...
markstory committed Oct 3, 2012
1 parent a38cac8 commit 1d77bb8da0e6bbfd60abec830bd831b6dd969862
@@ -17,7 +17,9 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace TestApp\Controller\Component;
use Cake\Controller\Component;
use Cake\Controller\Controller;
/**
* AppleComponent class
@@ -46,7 +48,7 @@ class AppleComponent extends Component {
* @param mixed $controller
* @return void
*/
public function startup($controller) {
public function startup(Controller $controller) {
$this->testName = $controller->name;
}
}
@@ -17,7 +17,9 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace TestApp\Controller\Component;
use Cake\Controller\Component;
use Cake\Controller\Controller;
/**
* BananaComponent class
@@ -39,7 +41,7 @@ class BananaComponent extends Component {
* @param Controller $controller
* @return string
*/
public function startup($controller) {
public function startup(Controller $controller) {
$controller->bar = 'fail';
}
}
@@ -1,9 +1,5 @@
<?php
/**
* OrangeComponent
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -17,7 +13,9 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace TestApp\Controller\Component;
use Cake\Controller\Component;
use Cake\Controller\Controller;
/**
* OrangeComponent class
@@ -38,7 +36,7 @@ class OrangeComponent extends Component {
* @param mixed $controller
* @return void
*/
public function initialize($controller) {
public function initialize(Controller $controller) {
$this->Controller = $controller;
$this->Banana->testField = 'OrangeField';
}
@@ -49,7 +47,7 @@ public function initialize($controller) {
* @param Controller $controller
* @return string
*/
public function startup($controller) {
public function startup(Controller $controller) {
$controller->foo = 'pass';
}
}

0 comments on commit 1d77bb8

Please sign in to comment.
You can’t perform that action at this time.