Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert adding silent deprecations for legacy ClassLoader, Inflector and Lexer #849

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -27,8 +27,7 @@
"require-dev": {
"phpunit/phpunit": "^6.3",
"doctrine/coding-standard": "^1.0",
"squizlabs/php_codesniffer": "^3.0",
"symfony/phpunit-bridge": "^4.0.5"
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 0 additions & 5 deletions lib/Doctrine/Common/ClassLoader.php
@@ -1,11 +1,6 @@
<?php
namespace Doctrine\Common;

use function trigger_error;
use const E_USER_DEPRECATED;

@trigger_error(ClassLoader::class . ' is deprecated.', E_USER_DEPRECATED);

/**
* A <tt>ClassLoader</tt> is an autoloader for class files that can be
* installed on the SPL autoload stack. It is a class loader that either loads only classes
Expand Down
4 changes: 0 additions & 4 deletions lib/Doctrine/Common/Lexer.php
Expand Up @@ -2,10 +2,6 @@
namespace Doctrine\Common;

use Doctrine\Common\Lexer\AbstractLexer;
use function trigger_error;
use const E_USER_DEPRECATED;

@trigger_error(Lexer::class . ' is deprecated.', E_USER_DEPRECATED);

/**
* Base class for writing simple lexers, i.e. for creating small DSLs.
Expand Down
4 changes: 0 additions & 4 deletions lib/Doctrine/Common/Util/Inflector.php
Expand Up @@ -2,10 +2,6 @@
namespace Doctrine\Common\Util;

use Doctrine\Common\Inflector\Inflector as BaseInflector;
use function trigger_error;
use const E_USER_DEPRECATED;

@trigger_error(Inflector::class . ' is deprecated.', E_USER_DEPRECATED);

/**
* Doctrine inflector has static methods for inflecting text.
Expand Down
3 changes: 0 additions & 3 deletions tests/Doctrine/Tests/Common/ClassLoaderTest.php
Expand Up @@ -4,9 +4,6 @@

use Doctrine\Common\ClassLoader;

/**
* @group legacy
*/
class ClassLoaderTest extends \Doctrine\Tests\DoctrineTestCase
{
public function testClassLoader()
Expand Down