mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 18:51:12 +02:00
DataObject::validate() is currently set to protected, but this means you can't call validate() from outside the context of itself unless you overload the method to use a public visibility and then call parent::validate() As it would turn out, most classes that overload this method already set the visibility to public, so it would make sense the parent matches that as well.
27 lines
525 B
Markdown
27 lines
525 B
Markdown
# 3.2.0 (unreleased)
|
|
|
|
## Overview
|
|
|
|
* Minimum PHP version raised to 5.3.3
|
|
* DataObject::validate() method visibility changed to public
|
|
|
|
## Changelog
|
|
|
|
### DataObject::validate() method visibility changed to public
|
|
|
|
The visibility of `DataObject::validate()` has been changed from `protected` to `public`.
|
|
|
|
Any existing classes that currently set this as `protected` should be changed like in
|
|
this example:
|
|
|
|
::php
|
|
class MyDataClass extends DataObject {
|
|
...
|
|
public function validate() {
|
|
...
|
|
}
|
|
...
|
|
}
|
|
|
|
### Bugfixes
|