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

got error in vendor/heyday/silverstripe-elastica/src/Searchable.php #15

Closed
sparkcom opened this issue Aug 22, 2018 · 2 comments
Closed

Comments

@sparkcom
Copy link

PHP Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) i

I have to change line 120

public function inheritedDatabaseFields()
{
return $this->owner::getSchema()->fieldSpecs($this->owner->getClassName());
}

to

public function inheritedDatabaseFields()
{
return $this->owner->getSchema()->fieldSpecs($this->owner->getClassName());
}

@clairefinnie
Copy link

howdy, got that last week but haven't had time fix it yet. Believe it is a PHP version issue.

That syntax is PHP7

What branch/tag are you on?

robbieaverill added a commit to creative-commoners/silverstripe-elastica that referenced this issue Apr 4, 2019
PHP 5.6 is listed as the minimum requirement in composer.json, this restores that.
Fixes WPP-Public#15
@robbieaverill
Copy link
Contributor

I've pushed a fix to #20 for this

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

3 participants