-
Notifications
You must be signed in to change notification settings - Fork 225
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
DEP PHP Support in CMS5 #1182
DEP PHP Support in CMS5 #1182
Conversation
87234f4
to
9dc002f
Compare
9dc002f
to
1880262
Compare
1880262
to
2b9d983
Compare
@emteknetnz , there are some issues with recent changes to DataObject to support php 8.2 https://github.com/silverstripe/silverstripe-framework/blob/c1a773310d088b22bea7ae1a6e1930050f0a33e2/src/ORM/DataObject.php#L2854 I would like to clarify whether we can change the access modifier from Thank you in advance :) |
I think that's probably the wrong solution, looks like it's coming from this in framework ViewableData public function __set($property, $value)
{
$this->objCacheClear();
if ($this->hasMethod($method = "set$property")) { // <<< here
$this->$method($value);
} else {
$this->setField($property, $value);
}
} I'm asumming it's trying to set the property 'FieldValue' and it seems the 'setFieldValue' method on DataObject and trys to use that, though that method does something different I think we need to add an an Can you confirm that this unit test is trying to set a $property of 'FieldValue' and then try updating ViewableData::__set() on your local? |
@emteknetnz, if you check this line in GA tests https://github.com/silverstripe/silverstripe-userforms/actions/runs/3870193575/jobs/6596921118#step:12:75 , you will see that tests are failed exactly in this |
Try adding is_callable() in ViewableData::__set() locally - if that works then open up a PR to framework |
Yes, it does. |
Passed tests in local env. Requires PR silverstripe/silverstripe-framework#10637 |
Failed Behat tests are related to the issue silverstripe/silverstripe-framework#10645 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Parent issue