8000 [2.7] adds deprecation notices. by hhamon · Pull Request #13060 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[2.7] adds deprecation notices. #13060

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

Merged
merged 13 commits into from
Jan 5, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed deprecation notices from test files.
  • Loading branch information
Hugo Hamon committed Jan 5, 2015
commit 39cfd4744eca41736206b13d539b4036cf50a1d4
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testSetLazyOption()
$test = $this;

$this->options->set('foo', function (Options $options) use ($test) {
return 'dynamic';
return 'dynamic';
});

$this->assertEquals(array('foo' => 'dynamic'), $this->options->resolve());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace Symfony\Component\Security\Tests\Core;

trigger_error('The '.__NAMESPACE__.'\SecurityContextInterfaceTest class is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);

use Symfony\Component\Security\Core\SecurityContextInterface;
use Symfony\Component\Security\Core\Security;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use Symfony\Component\Validator\Validation;

/**
* @since 2.5.3
* @since 2.5.3
*
* @author Bernhard Schussek <bschussek@gmail.com>
*/
Expand Down Expand Up @@ -167,13 +167,10 @@ protected function createContext()
*
* @return ConstraintViolation
*
* @deprecated To be removed in Symfony 3.0. Use
* {@link buildViolation()} instead.
* @deprecated to be removed in Symfony 3.0. Use {@link buildViolation()} instead.
*/
protected function createViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null)
{
trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the buildViolation() method instead.', E_USER_DEPRECATED);

return new ConstraintViolation(
null,
$message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace Symfony\Component\Validator\Tests\Fixtures;

trigger_error('The '.__NAMESPACE__.'\StubGlobalExecutionContext class is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);

use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\GlobalExecutionContextInterface;
use Symfony\Component\Validator\ValidationVisitorInterface;
Expand Down
0