Skip to content

Commit 63e54de

Browse files
authored
Reduce php 8.2 warnings (#1)
* Reduce php 8.2 warnings * Move traits to top of file
1 parent 2c7c690 commit 63e54de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ArrayModel.php

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function getData()
3535
return $this->_data;
3636
}
3737

38+
#[\ReturnTypeWillChange]
3839
public function jsonSerialize()
3940
{
4041
return $this->_data;

src/ViewModel.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88

99
class ViewModel implements Model, ContextAware
1010
{
11-
protected string $_defaultView;
12-
1311
use ContextAwareTrait;
1412
use WithContextTrait;
1513

14+
protected string $_defaultView;
15+
16+
#[\ReturnTypeWillChange]
1617
public function jsonSerialize()
1718
{
1819
$values = Objects::propertyValues($this);

0 commit comments

Comments
 (0)