mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-02 13:37:41 +00:00
Add $this return type to Template::unwrap
See https://phpstan.org/writing-php-code/phpdoc-types#static-and-%24this This way, PHPStan understands that the returned template is the exact same instance, and not just a Template.
This commit is contained in:
@@ -318,6 +318,7 @@ abstract class Template
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @return $this
|
||||
*/
|
||||
public function unwrap(): self
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user