Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix error when use numeric for reference name #517

Open
wants to merge 1 commit into
base: 1.8.x
Choose a base branch
from

Conversation

ovitores
Copy link

Fix #512

The method ReferenceRepository::setReferenceIdentity(string $name, mixed $identity, string $class): void typed the parameter $name with string and numeric reference names is cast to integers when are recovered from ReferenceRepository::getReferenceNames($object) method in previous lines, so when pass the value of numeric name in integer with a parameter typed with string then fails.

So I propose a fix to cast names to string in ReferenceRepository::getReferenceNames($object) when are returned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant