You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
IDE and static analysis complains that the method is not defined when chaining methods
To Reproduce
Steps to reproduce the behavior:
Laravel 10,
laravel-dompdf v2.0.1
Create a controller and add the following code. Run static analysis on it like phpstan. Alternatively, inspect the return type of the chained methods in your IDE or try to go to the definition of the chained methods in the IDE. The best way to replicate is to use a static analysis tool like phpstan
$pdf = Pdf::loadView('any.random.view')->setPaper('a4', 'portrait'); // setPaper() not definedreturn$pdf->download(); // static analysis complains downlaod() is not defined. Also "go to definition" in IDE doesn't work"// OR$pdf->save(...); // static analysis complains save() is not defined. Also "go to definition" in IDE doesn't work"
Expected behavior
The methods should be defined according to the docs
The text was updated successfully, but these errors were encountered:
Describe the bug
IDE and static analysis complains that the method is not defined when chaining methods
To Reproduce
Steps to reproduce the behavior:
Create a controller and add the following code. Run static analysis on it like phpstan. Alternatively, inspect the return type of the chained methods in your IDE or try to go to the definition of the chained methods in the IDE. The best way to replicate is to use a static analysis tool like phpstan
Expected behavior
The methods should be defined according to the docs
The text was updated successfully, but these errors were encountered: