Skip to content

Commit

Permalink
Fix issue with strict mapping logic being backwards for questions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kloor committed Aug 13, 2021
1 parent 8962bc1 commit 025a714
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Data/TraitQuestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ final public static function undefinedPropertyHandler(
$value
): void {
if (!self::isQuestion($property)) {
if (Data::$strictMapping) {
$object[$property] = $value;
if (!Data::$strictMapping) {
/** @phpstan-ignore-next-line */
$object->$property = $value;

return;
}
Expand Down

0 comments on commit 025a714

Please sign in to comment.