1
0
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:
Bob Weinand 2016-08-14 04:41:47 +02:00
parent 42d9b25c3d
commit 80265b726e
2 changed files with 4 additions and 2 deletions

View File

@ -132,6 +132,8 @@ class Observer {
}
if ($this->resolved) {
--$this->position;
if ($this->exception) {
return new Failure($this->exception);
}

View File

@ -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)
);