Skip to content

Fixed #651 Person::$extra must be an array and an object was given.#652

Merged
danielmorell merged 1 commit into
masterfrom
fixed/issue-651-person-extra-must-be-array
Apr 15, 2025
Merged

Fixed #651 Person::$extra must be an array and an object was given.#652
danielmorell merged 1 commit into
masterfrom
fixed/issue-651-person-extra-must-be-array

Conversation

@danielmorell

@danielmorell danielmorell commented Apr 11, 2025

Copy link
Copy Markdown
Collaborator

Description of the change

This resolves the issue with #651 by serializing the object passed to the extra parameter of Person::__construct().

It also moves the logic to prevent using the keys id, email, and username from the DataBuilder class to the Person class as this seems like a more logical location. As in the Person constructor it can prevent these keys being set no mater where the instance is being created from.

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Related issues

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers assigned
  • Issue from task tracker has a link to this pull request
  • Changes have been reviewed by at least one other engineer

@danielmorell danielmorell added this to the v4.1.2 milestone Apr 11, 2025
@danielmorell danielmorell requested a review from brianr April 11, 2025 20:47
@danielmorell danielmorell merged commit 7501f97 into master Apr 15, 2025
@danielmorell danielmorell deleted the fixed/issue-651-person-extra-must-be-array branch April 15, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants