BUGFIX: fix up some E_STRICT errors

This commit is contained in:
Mateusz Uzdowski 2012-04-17 11:51:55 +12:00
parent 311bfba6e2
commit 59663f9289
6 changed files with 8 additions and 9 deletions

View File

@ -11,7 +11,7 @@ class VersionedRestfulServer extends Controller {
'index'
);
function handleRequest($request, $model) {
function handleRequest(SS_HTTPRequest $request, DataModel $model) {
$this->setModel($model);
Versioned::reading_stage('Live');
$restfulserver = new RestfulServer();

View File

@ -36,7 +36,7 @@ class CodeViewer extends Controller {
'{' => 'classBody',
),
'classBody' => array(
T_FUNCTION => array('methodName','createMethod'),
T_FUNCTION => array('methodName','createBodyMethod'),
'}' => array('start', 'completeClass'),
T_DOC_COMMENT => array('', 'saveMethodComment'),
),
@ -159,7 +159,7 @@ class CodeViewer extends Controller {
$this->classes[] = $this->currentClass;
}
function createMethod($token) {
function createBodyMethod($token) {
$this->currentMethod = array();
$this->currentMethod['content'] = "<pre>";
$this->currentMethod['description'] = $this->methodComment['pretty'];

View File

@ -22,7 +22,7 @@ class TestViewer extends Controller {
'{' => 'classBody',
),
'classBody' => array(
T_FUNCTION => array('methodName','createMethod'),
T_FUNCTION => array('methodName','createBodyMethod'),
'}' => array('start', 'completeClass'),
),
'methodName' => array(
@ -84,7 +84,7 @@ class TestViewer extends Controller {
$this->classes[] = $this->currentClass;
}
function createMethod($token) {
function createBodyMethod($token) {
$this->currentMethod = array();
$this->currentMethod['content'] = "<pre>";
}

View File

@ -5,7 +5,7 @@
* @subpackage transformations
*/
class DisabledTransformation extends FormTransformation {
public function transform($field) {
function transform(FormField $field) {
return $field->performDisabledTransformation($this);
}
}

View File

@ -41,7 +41,7 @@ class MultiEnum extends Enum {
/**
* Return a {@link CheckboxSetField} suitable for editing this field
*/
function formField($title = null, $name = null, $hasEmpty = false, $value = "", $form = null) {
function formField($title = null, $name = null, $hasEmpty = false, $value = "", $form = null, $emptyString = null) {
if(!$title) $title = $this->name;
if(!$name) $name = $this->name;
@ -51,4 +51,3 @@ class MultiEnum extends Enum {
}
}
?>

View File

@ -177,7 +177,7 @@ class SSHTMLBBCodeParser
$this->addFilters($this->_options['filters']);
}
function &getStaticProperty($class, $var)
static function &getStaticProperty($class, $var)
{
static $properties;
if (!isset($properties[$class])) {