mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-06 15:37:58 +00:00
minor #4420 Add $this return type to Template::unwrap (ruudk)
This PR was merged into the 3.x branch.
Discussion
----------
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.
Commits
-------
92e4989002 Add `$this` return type to Template::unwrap
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