Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP7 で無効な参照代入を削除 #193

Merged
merged 2 commits into from
Apr 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/module/Calendar/Decorator/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Calendar_Decorator_Uri(&$Calendar)
* @access public
*/
function setFragments($y, $m=null, $d=null, $h=null, $i=null, $s=null) {
$this->Uri = & new Calendar_Util_Uri($y, $m, $d, $h, $i, $s);
$this->Uri = new Calendar_Util_Uri($y, $m, $d, $h, $i, $s);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions data/module/Calendar/Decorator/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function & fetch($decorator)
{
$Calendar = parent::fetch();
if ($Calendar) {
$ret =& new $decorator($Calendar);
$ret = new $decorator($Calendar);
} else {
$ret = false;
}
Expand All @@ -82,7 +82,7 @@ function fetchAll($decorator)
{
$children = parent::fetchAll();
foreach ($children as $key => $Calendar) {
$children[$key] = & new $decorator($Calendar);
$children[$key] = new $decorator($Calendar);
}
return $children;
}
Expand Down
2 changes: 1 addition & 1 deletion data/module/Calendar/Month/Weeks.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function Calendar_Month_Weeks($y, $m, $firstDay=null)
function build($sDates=array())
{
require_once CALENDAR_ROOT.'Table/Helper.php';
$this->tableHelper = & new Calendar_Table_Helper($this, $this->firstDay);
$this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
require_once CALENDAR_ROOT.'Week.php';
$numWeeks = $this->tableHelper->getNumWeeks();
for ($i=1, $d=1; $i<=$numWeeks; $i++,
Expand Down
2 changes: 1 addition & 1 deletion data/module/Calendar/Week.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Calendar_Week($y, $m, $d, $firstDay=null)
require_once CALENDAR_ROOT.'Table/Helper.php';
Calendar::Calendar($y, $m, $d);
$this->firstDay = $this->defineFirstDayOfWeek($firstDay);
$this->tableHelper = & new Calendar_Table_Helper($this, $this->firstDay);
$this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
$this->thisWeek = $this->tableHelper->getWeekStart($y, $m, $d, $this->firstDay);
$this->prevWeek = $this->tableHelper->getWeekStart($y, $m, $d - $this->cE->getDaysInWeek(
$this->thisYear(),
Expand Down
3 changes: 0 additions & 3 deletions data/module/Calendar/docs/Readme

This file was deleted.

92 changes: 0 additions & 92 deletions data/module/Calendar/docs/examples/1.php

This file was deleted.

92 changes: 0 additions & 92 deletions data/module/Calendar/docs/examples/1.phps

This file was deleted.

93 changes: 0 additions & 93 deletions data/module/Calendar/docs/examples/10.php

This file was deleted.

Loading