Skip to content

Commit 4945317

Browse files
committed
Fixing broken build for 0.8
1 parent c08cc2b commit 4945317

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/Error.php

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

src/deprecated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
}
55

66
// Renamed as of 8.0:
7-
class_alias('GraphQL\Error\Error', 'GraphQL\Error');
87
class_alias('GraphQL\Error\FormattedError', 'GraphQL\FormattedError');
98
class_alias('GraphQL\Error\SyntaxError', 'GraphQL\SyntaxError');
109

0 commit comments

Comments
 (0)