Skip to content

Commit d135651

Browse files
committed
Use @trigger_error
1 parent 520da5b commit d135651

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Annotation/Arg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(string $name, string $type, ?string $description = n
6262
$this->default = $default;
6363

6464
if ($this->defaultValue === null && $this->default !== null) {
65-
trigger_deprecation('overblog/graphql-bundle', '1.3', 'The "default" attribute on @GQL\Arg or #GQL\Arg is deprecated, use "defaultValue" instead.');
65+
@trigger_error(sprintf("%s %s %s", 'overblog/graphql-bundle', '1.3', 'The "default" attribute on @GQL\Arg or #GQL\Arg is deprecated, use "defaultValue" instead.'), E_USER_DEPRECATED);
6666
$this->defaultValue = $default;
6767
}
6868
}

src/Config/Parser/MetadataParser/MetadataParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ private static function getTypeFieldConfigurationFromReflector(ReflectionClass $
601601
if (isset($arg->defaultValue)) {
602602
$args[$arg->name]['defaultValue'] = $arg->defaultValue;
603603
} elseif (isset($arg->default)) {
604-
trigger_deprecation('overblog/graphql-bundle', '1.3', 'The "default" attribute on @GQL\Arg or #GQL\Arg is deprecated, use "defaultValue" instead.');
604+
@trigger_error(sprintf('%s %s %s', 'overblog/graphql-bundle', '1.3', 'The "default" attribute on @GQL\Arg or #GQL\Arg is deprecated, use "defaultValue" instead.'), E_USER_DEPRECATED);
605605
$args[$arg->name]['defaultValue'] = $arg->default;
606606
}
607607
}

0 commit comments

Comments
 (0)