mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Do not have final methods in Struct, functions may need to be overridden
This commit is contained in:
parent
42d9b25c3d
commit
80265b726e
@ -132,6 +132,8 @@ class Observer {
|
||||
}
|
||||
|
||||
if ($this->resolved) {
|
||||
--$this->position;
|
||||
|
||||
if ($this->exception) {
|
||||
return new Failure($this->exception);
|
||||
}
|
||||
|
@ -15,13 +15,13 @@ trait Struct {
|
||||
*/
|
||||
private $__propertySuggestThreshold = 70;
|
||||
|
||||
final public function __get($property) {
|
||||
public function __get($property) {
|
||||
throw new \Error(
|
||||
$this->generateStructPropertyError($property)
|
||||
);
|
||||
}
|
||||
|
||||
final public function __set($property, $value) {
|
||||
public function __set($property, $value) {
|
||||
throw new \Error(
|
||||
$this->generateStructPropertyError($property)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user