Skip to content

Commit 6330792

Browse files
committed
PHP 8.1/8.2 notice fixes
1 parent 5e02ed8 commit 6330792

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

controllers/IndexController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
*/
99
class CsvImport_IndexController extends Omeka_Controller_AbstractActionController
1010
{
11+
public $session;
12+
1113
protected $_browseRecordsPerPage = 10;
1214
protected $_pluginConfig = array();
1315

models/CsvImport/RowIterator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function getColumnDelimiter()
5050
*
5151
* @throws CsvImport_DuplicateColumnException
5252
*/
53+
#[\ReturnTypeWillChange]
5354
public function rewind()
5455
{
5556
if ($this->_handle) {
@@ -77,6 +78,7 @@ public function rewind()
7778
*
7879
* @return mixed current element
7980
*/
81+
#[\ReturnTypeWillChange]
8082
public function current()
8183
{
8284
return $this->_currentRow;
@@ -88,6 +90,7 @@ public function current()
8890
*
8991
* @return scalar
9092
*/
93+
#[\ReturnTypeWillChange]
9194
public function key()
9295
{
9396
return $this->_currentRowNumber;
@@ -99,6 +102,7 @@ public function key()
99102
*
100103
* @throws Exception
101104
*/
105+
#[\ReturnTypeWillChange]
102106
public function next()
103107
{
104108
$this->_moveNext();
@@ -109,6 +113,7 @@ public function next()
109113
*
110114
* @param int The offset
111115
*/
116+
#[\ReturnTypeWillChange]
112117
public function seek($index)
113118
{
114119
if (!$this->_colNames) {
@@ -149,6 +154,7 @@ protected function _moveNext()
149154
*
150155
* @return boolean
151156
*/
157+
#[\ReturnTypeWillChange]
152158
public function valid()
153159
{
154160
if (!file_exists($this->_filePath)) {

0 commit comments

Comments
 (0)