Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Return value of Olssonm\SwedishEntity\Organization::parseType() must be of the type string, null returned #10

Closed
tomsommer opened this issue Oct 20, 2021 · 4 comments

Comments

@tomsommer
Copy link

tomsommer commented Oct 20, 2021

/src/Organization.php line 149

Olssonm\SwedishEntity\Organization->__construct('012779-0293')

@olssonm
Copy link
Owner

olssonm commented Oct 20, 2021

Good catch. Not too sure if a Swedish organization number can start with a "0", trying find data on this. As "012779-0293" technically is a correct number, but can't be matched to a type of company/organization.

Do you know where 012779-0293 comes from, or did you just happen to stumble across this?

@tomsommer
Copy link
Author

Just some user-input triggering exception :)

@olssonm
Copy link
Owner

olssonm commented Oct 20, 2021

Gotcha – thanks for the heads up! Will look into it and publish an update.

@olssonm
Copy link
Owner

olssonm commented Oct 20, 2021

A new release is now available (https://github.com/olssonm/swedish-entity/releases/tag/v1.3.1) that should sort this out.

Thanks for reporting!

@olssonm olssonm closed this as completed Oct 20, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants