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:
Ruud Kamphuis
2024-10-25 13:19:27 +02:00
committed by GitHub
parent 55d56c4cb9
commit 92e4989002
+1
View File
@@ -318,6 +318,7 @@ abstract class Template
/**
* @internal
* @return $this
*/
public function unwrap(): self
{