Skip to content

Commit

Permalink
fixed warnings in php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Jun 2, 2022
1 parent c207aab commit 5775de8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.9] - 2022-06-02
- Fixed: warning in php 8

## [1.5.8] - 2022-03-25
- Fixed: exception if the templates folder does not exist ([#8], [@qzminski])

Expand Down
4 changes: 2 additions & 2 deletions src/Helper/NormalizerHelper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*
* Copyright (c) 2020 Heimrich & Hannot GmbH
* Copyright (c) 2022 Heimrich & Hannot GmbH
*
* @license LGPL-3.0-or-later
*/
Expand Down Expand Up @@ -101,7 +101,7 @@ public function normalizeObject($object, $data = [], $options = []): array
$method->setAccessible(true);
$data[$property] = $method->invoke($object);
} else {
$data[$property] = $object->{$method->name}();
$data[$property] = @$object->{$method->name}();
}

if (\is_object($data[$property])) {
Expand Down

0 comments on commit 5775de8

Please sign in to comment.