Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: doctype of View::render violates contract (laravel#38789)
The Illuminate\View\View class is implementing the Illuminate\Contracts\View\View contract which extends the Illuminate\Contracts\Support\Renderable contract. The renderable contract is ensuring a contract for the render method always return a string: ```php /** * Get the evaluated contents of the object. * * @return string */ public function render(); ``` But the View class implementing the contract is specifying a return type violating the contract: ```php /** * Get the string contents of the view. * * @param callable|null $callback * @return array|string * * @throws \Throwable */ public function render(callable $callback = null) {} ```
- Loading branch information