Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit be21bcb

Browse files
committed
Merge branch '2.5' into 2.6
* 2.5: Updated generateSql tool Fix the implementation of deprecated Locale classes Fix phpdoc and coding standards Replace usages of the deprecated TypeTestCase by the new one Remove usages of deprecated constants Update functional tests to use the PSR NullLogger fix regression in form tests after pr #13027 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Make fabbot happy Clean up testing No global state for isolated tests and other fixes No global state for isolated tests and other fixes fix #10054 - form data collector with dynamic fields [TwigBundle] Moved the setting of the default escaping strategy from the Twig engine to the Twig environment [Debug] fix checkip6 [HttpFoundation] fixed error when an IP in the X-Forwarded-For HTTP header contains a port Update the note about origins of the CssSelector component. Use the correct cssselect library name in docblocks. [DomCrawler] fixed bug #12143 Conflicts: src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php
2 parents 8d6c4e2 + cd277e8 commit be21bcb

File tree

9 files changed

+6
-9
lines changed

9 files changed

+6
-9
lines changed

Acl/Model/MutableAclProviderInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Security\Acl\Model;
1313

14+
use Symfony\Component\Security\Acl\Exception\AclAlreadyExistsException;
15+
1416
/**
1517
* Provides support for creating and storing ACL instances.
1618
*

Acl/Resources/bin/generateSql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'Symfony' => __DIR__.'/../../../../../..',
2121
'Doctrine\\Common' => __DIR__.'/../../../../../../../vendor/doctrine-common/lib',
2222
'Doctrine\\DBAL\\Migrations' => __DIR__.'/../../../../../../../vendor/doctrine-migrations/lib',
23-
'Doctrine\\DBAL' => __DIR__.'/../../../../../../../vendor/doctrine-dbal/lib',
23+
'Doctrine\\DBAL' => __DIR__.'/../../../../../../../vendor/doctrine/dbal/lib',
2424
'Doctrine' => __DIR__.'/../../../../../../../vendor/doctrine/lib',
2525
));
2626
$loader->register();
@@ -46,6 +46,6 @@
4646
}
4747

4848
$platform = $reflection->newInstance();
49-
$targetFile = sprintf(__DIR__.'/../schema/%s.sql', $platform->name);
49+
$targetFile = sprintf(__DIR__.'/../schema/%s.sql', $platform->getName());
5050
file_put_contents($targetFile, implode("\n\n", $schema->toSql($platform)));
5151
}

Core/Authentication/Provider/UserAuthenticationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function supports(TokenInterface $token)
113113
* @param UserInterface $user The user
114114
* @param TokenInterface $token The token
115115
*
116-
* @return Role[] The user roles
116+
* @return array The user roles
117117
*/
118118
private function getRoles(UserInterface $user, TokenInterface $token)
119119
{

Core/Tests/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Core\Tests\Authentication;
1313

14-
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1614
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
1715

1816
class AuthenticationTrustResolverTest extends \PHPUnit_Framework_TestCase

Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* @author Bernhard Schussek <[email protected]>
1818
*
1919
* @runTestsInSeparateProcesses
20+
* @preserveGlobalState disabled
2021
*/
2122
class NativeSessionTokenStorageTest extends \PHPUnit_Framework_TestCase
2223
{

Http/Tests/Firewall/ChannelListenerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Tests\Firewall;
1313

1414
use Symfony\Component\Security\Http\Firewall\ChannelListener;
15-
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1615
use Symfony\Component\HttpFoundation\Response;
1716

1817
class ChannelListenerTest extends \PHPUnit_Framework_TestCase

Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Security\Http\Tests\Logout;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
1615

1716
class DefaultLogoutSuccessHandlerTest extends \PHPUnit_Framework_TestCase

Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Tests\RememberMe;
1313

1414
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1615
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1716
use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken;
1817
use Symfony\Component\HttpFoundation\Request;

Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Http\Tests\RememberMe;
1313

1414
use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface;
15-
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
1615
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
1716
use Symfony\Component\HttpFoundation\Request;
1817
use Symfony\Component\HttpFoundation\Response;

0 commit comments

Comments
 (0)