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

[Tree] The value of path source property is cast to string type #2061

Merged
merged 1 commit into from Jan 18, 2020
Merged

Conversation

kosarinin
Copy link
Contributor

Hi! During the migration to php7.4, we faced with an error. We use integer value as a tree path source and it causes this error:

Notice: Trying to access array offset on value of type int

on this line https://github.com/Atlantic18/DoctrineExtensions/blob/81681364331b131518060e4776300a5346df1eb5/lib/Gedmo/Tree/Strategy/AbstractMaterializedPath.php#L299

@kosarinin
Copy link
Contributor Author

Hi @AkenRoberts! I'm sorry for bothering you but what do I need to do to review this MR? Looks like the CI failure doesn't relate to the MR.

@michaelgracious
Copy link

@AkenRoberts Could this be looked at? it seems Travis fails due to a config error of Travis and not due to an error made by @kosarinin
We need these changes to have this work on PHP 7.4

@AkenRoberts AkenRoberts merged commit 7feb973 into doctrine-extensions:v2.4.x Jan 18, 2020
@AkenRoberts
Copy link
Member

Thank you. ❤️

AkenRoberts pushed a commit that referenced this pull request Jan 18, 2020
…aterialized Path Tree strategy

Cherry picked from 2.4.x branch. #2061
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.

None yet

5 participants