-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Syntax error, unexpected ')', expecting T_VARIABLE on line 2 #12
Comments
When running phpstan with debug mode it does end up like that on a random near to empty trait file
And then the error table |
Hi, I'd really need more info to debug this. Can you at least try to reproduce this on one file, a controller for example? And then check which views that controller use. The issue can be in any of the included views, layouts that the view extends or the view file itself. So, if you can share those I can debug further. But if not, you'd need to debug it by removing some code from view, and re-checking. Also do you have any custom directives registered? Thanks |
Hi, It does not do the error on all controllers, I have pinned two that make it and here is one that I trimmed down to reproduce the error <?php
namespace App\Http\v30\Controllers;
use Illuminate\Http\Request;
class TemplateMailController extends Controller
{
public function renderFoo(Request $request)
{
return view('email.toFoo.barBaz', $dataMail)->render();
}
} The blade template @include('email.partials.head') And if I empty the included file it does not change anything, anyway the included file is pure HTML |
Hi @canvural |
Closing it, I think the data I provided should allow to reproduce it |
I am upgrading to Laravel 9 and now it throws: Call to a member function end() on null
at phar://vendor/phpstan/phpstan/phpstan.phar/src/Parallel/Process.php:127
123▕ }
124▕ foreach ($this->process->pipes as $pipe) {
125▕ $pipe->close();
126▕ }
➜ 127▕ $this->in->end();
128▕ }
129▕ public function bindConnection(ReadableStreamInterface $out, WritableStreamInterface $in) : void
130▕ {
131▕ $out->on('data', function (array $json) : void {
Will be upgrading to 10 soon |
Could be kinda related to #4
When I put your rules non commented phpstan outputs some PHP parse errors on files that have nothing to do with the extension
Using this container that runs PHP 8.1.3: https://hub.docker.com/r/lcde/laravel
The text was updated successfully, but these errors were encountered: