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

Framework 3.7 - Invalid table name in php 7.4 #9961

Closed
1 task done
emteknetnz opened this issue Jun 2, 2021 · 4 comments
Closed
1 task done

Framework 3.7 - Invalid table name in php 7.4 #9961

emteknetnz opened this issue Jun 2, 2021 · 4 comments

Comments

@emteknetnz
Copy link
Member

emteknetnz commented Jun 2, 2021

framework 3.7.x-dev
PHP 7.4

The when initializing unit test DataObjectLazyLoadingTest will call SapphireTest::resetDBSchema() - there's a misnamed unit test only table name from another test DataObjectTest\NamespacedClass that attempts to get created

This failed "gracefully" in php 7.3 and below because array style access on non-arrays was allowed and simply resulted in null. This behaviour was removed in php 7.4 https://www.php.net/manual/en/migration74.incompatible.php and results in Trying to access array offset on value of type bool

This can be seen in travis here https://travis-ci.com/github/silverstripe/cwp-recipe-basic/jobs/510267889 Update: job was re-run after fix was merged and error is no longer visible

Related
https://github.com/silverstripeltd/product-issues/issues/437

PRs

@brynwhyman
Copy link
Contributor

Do you think this warrants another patch release of 3.7 @emteknetnz? I feel like it does and I can't think of what else we would wait for before doing this.

@emteknetnz
Copy link
Member Author

If you want. Could possibly wait for something around resolving deprecated warnings, though it's only a patch release so really is no reason not to - you want me to do this now?

@brynwhyman
Copy link
Contributor

you want me to do this now?

Yes please. If there's further changes that warrant another release, we can look at that then

@emteknetnz
Copy link
Member Author

Cool, I tagged 3.7.7

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

No branches or pull requests

2 participants