Skip to content

Commit

Permalink
Fix strict errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 3, 2012
1 parent a38cac8 commit 1d77bb8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
}
Expand Up @@ -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
Expand All @@ -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';
}
}
10 changes: 4 additions & 6 deletions lib/Cake/Test/TestApp/Controller/Component/OrangeComponent.php
@@ -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)
*
Expand All @@ -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
Expand All @@ -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';
}
Expand All @@ -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.