Comments (5)
It sounds like your webhost is running an unsupported version of PHP.
The syntax that is failing is called Variadic functions and was added in PHP 5.6
from blade.
You could try using call_user_func_array() instead. Something like this:
public static function __callStatic($name, array $arguments)
{
$instance = static::getInstance();
return call_user_func_array([$instance, $name], $arguments);
}
from blade.
Upgraded my host to php7.0 and it is working now. I guess you should not worry to much with getting that working on < 5.6 versions of PHP, but this is just my personal opinion.
Thanks for your fast reply, and congratulations on the cool project here
Cheers from Portugal 👍
from blade.
Glad it's working, happy coding!
from blade.
Hi @duncan3dc, I got this error again, but this time I can't change the hosting PHP version. Any idea how to hackishly solve this for now? Thanks
from blade.
Related Issues (20)
- Could not reach BladeInstance->getViewFactory() method HOT 4
- Cache files not automatically refreshed in development, using phpstorm HOT 6
- Can't use the "$this" HOT 6
- How would one get url parameters from the route request? HOT 2
- suggestion for configuration HOT 5
- without cache HOT 1
- Non existent variable does not throw ErrorException HOT 2
- Return value of duncan3dc\Laravel\Directives::register() must be an instance of duncan3dc\Laravel\void, none returned HOT 2
- How to set default for @yield via @include file HOT 3
- Where are Document this package HOT 2
- The IDE shows error HOT 1
- Laravel 7 `x-` Components HOT 1
- it not update it's lluminate/filesystem version HOT 1
- 支持php8 HOT 1
- laravel 9.x support HOT 3
- View [categories.create] not found. HOT 1
- Please add support for PHP 8.2 HOT 1
- I've got Problem when I try install it with Symfony. HOT 2
- throw new InvalidArgumentException("View [$name] not found."); HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blade.