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:
Fabien Potencier
2024-10-25 15:58:24 +02:00
+1
View File
@@ -318,6 +318,7 @@ abstract class Template
/**
* @internal
* @return $this
*/
public function unwrap(): self
{