TerrePorter / StringBladeCompiler

Render Blade templates from string
MIT License
175 stars 76 forks source link

Update phpdoc #75

Closed Jellyfrog closed 3 years ago

Jellyfrog commented 3 years ago

I guess this is not 100% right since it can return \Illuminate\Contracts\View\View also, however that doesn't play well with PHPStan.

Now this works without errors in phpstan;

use Wpb\String_Blade_Compiler\Facades\StringBlade as View;

return View::make(['template' => $data['template']->template], $alert)->__toString();
Jellyfrog commented 3 years ago

Never mind, this didnt work.