Fix tests on PHP 5.4

This commit is contained in:
Romain Neutron
2012-09-27 01:46:18 +02:00
parent d4f466ef63
commit 0ac8a9d8ae
107 changed files with 196 additions and 175 deletions

View File

@@ -159,7 +159,7 @@ class databox_field implements cache_cacheableInterface
* @param <type> $id
* @return databox_field
*/
protected function __construct(Application $app, databox &$databox, $id)
protected function __construct(Application $app, databox $databox, $id)
{
$this->app = $app;
$this->set_databox($databox);
@@ -248,7 +248,7 @@ class databox_field implements cache_cacheableInterface
* @param int $id
* @return \databox_field
*/
public static function get_instance(Application $app, databox &$databox, $id)
public static function get_instance(Application $app, databox $databox, $id)
{
$cache_key = 'field_' . $id;
$instance_id = $databox->get_sbas_id() . '_' . $id;
@@ -268,7 +268,7 @@ class databox_field implements cache_cacheableInterface
*
* @param databox $databox
*/
public function set_databox(databox &$databox)
public function set_databox(databox $databox)
{
$this->databox = $databox;
}

View File

@@ -46,7 +46,7 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
* @param databox $databox
* @return Array
*/
public function __construct(databox &$databox)
public function __construct(databox $databox)
{
$this->databox = $databox;