Fixing broken build for 0.8

This commit is contained in:
vladar 2016-11-25 18:45:38 +07:00
parent c08cc2b00b
commit 4945317406
2 changed files with 18 additions and 1 deletions

18
src/Error.php Normal file
View File

@ -0,0 +1,18 @@
<?php
namespace GraphQL;
trigger_error(
'GraphQL\Error was moved to GraphQL\Error\Error and will be deleted on next release',
E_USER_DEPRECATED
);
/**
* Class Error
*
* @deprecated as of 8.0 in favor of GraphQL\Error\Error
* @package GraphQL
*/
class Error extends \GraphQL\Error\Error
{
}

View File

@ -4,7 +4,6 @@ if (defined('GRAPHQL_WITH_DEPRECATED') && !GRAPHQL_WITH_DEPRECATED) {
}
// Renamed as of 8.0:
class_alias('GraphQL\Error\Error', 'GraphQL\Error');
class_alias('GraphQL\Error\FormattedError', 'GraphQL\FormattedError');
class_alias('GraphQL\Error\SyntaxError', 'GraphQL\SyntaxError');