Skip to content

Commit f9a366e

Browse files
committed
Add Fallback for DirectiveLocations
1 parent 61fe317 commit f9a366e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace GraphQL\Type\Definition;
3+
4+
use GraphQL\Language\DirectiveLocation as NewDirectiveLocation;
5+
6+
trigger_error(
7+
'GraphQL\Type\Definition\DirectiveLocation was moved to GraphQL\Language\DirectiveLocation and will be deleted on next release',
8+
E_USER_DEPRECATED
9+
);
10+
11+
/**
12+
* @deprecated moved to GraphQL\Language\DirectiveLocation
13+
*/
14+
class DirectiveLocation extends NewDirectiveLocation
15+
{
16+
17+
}

0 commit comments

Comments
 (0)