Skip to content

Commit

Permalink
Reduce php 8.2 warnings (#1)
Browse files Browse the repository at this point in the history
* Reduce php 8.2 warnings

* Move traits to top of file
  • Loading branch information
MrEssex authored Jun 2, 2023
1 parent 2c7c690 commit 63e54de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/ArrayModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function getData()
return $this->_data;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->_data;
Expand Down
5 changes: 3 additions & 2 deletions src/ViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

class ViewModel implements Model, ContextAware
{
protected string $_defaultView;

use ContextAwareTrait;
use WithContextTrait;

protected string $_defaultView;

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
$values = Objects::propertyValues($this);
Expand Down

0 comments on commit 63e54de

Please sign in to comment.