mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Fix incompatible identifier() signature in test stubs
This commit is contained in:
@@ -237,7 +237,7 @@ function twig_tests_filter_all(string $charset, Environment $env, array $context
|
||||
|
||||
class ChildMagicCallStub extends ParentMagicCallStub
|
||||
{
|
||||
public static function identifier()
|
||||
public static function identifier(): string
|
||||
{
|
||||
return 'child';
|
||||
}
|
||||
@@ -245,7 +245,7 @@ class ChildMagicCallStub extends ParentMagicCallStub
|
||||
|
||||
class ParentMagicCallStub
|
||||
{
|
||||
public static function identifier(): void
|
||||
public static function identifier(): string
|
||||
{
|
||||
throw new \Exception('Identifier has not been defined.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user