Skip to content

Commit b188bf1

Browse files
committed
Remove deprecations
1 parent 064bad0 commit b188bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Model/Behavior/JsonableBehavior.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function initialize(array $config): void {
8888
*
8989
* @return void
9090
*/
91-
public function beforeFind(EventInterface $event, SelectQuery $query, ArrayObject $options, bool $primary) {
91+
public function beforeFind(EventInterface $event, SelectQuery $query, ArrayObject $options, bool $primary): void {
9292
$query->formatResults(function (CollectionInterface $results) {
9393
return $results->map(function ($row) {
9494
if (!$row instanceof Entity) {
@@ -130,7 +130,7 @@ public function decodeItems(EntityInterface $entity) {
130130
*
131131
* @return void
132132
*/
133-
public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options) {
133+
public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options): void {
134134
$fields = $this->_getMappedFields();
135135

136136
foreach ($fields as $map => $field) {

0 commit comments

Comments
 (0)