Skip to content

Commit 0e09c78

Browse files
Enable "native_constant_invocation" CS rule
1 parent 7f95701 commit 0e09c78

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

EntryPoint/DigestAuthenticationEntryPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DigestAuthenticationEntryPoint implements AuthenticationEntryPointInterfac
3333

3434
public function __construct($realmName, $secret, $nonceValiditySeconds = 300, LoggerInterface $logger = null)
3535
{
36-
@trigger_error(sprintf('The %s class and the whole HTTP digest authentication system is deprecated since Symfony 3.4 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
36+
@trigger_error(sprintf('The %s class and the whole HTTP digest authentication system is deprecated since Symfony 3.4 and will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
3737

3838
$this->realmName = $realmName;
3939
$this->secret = $secret;

Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function refreshUser(TokenInterface $token)
196196
continue;
197197
}
198198

199-
@trigger_error('Refreshing a deauthenticated user is deprecated as of 3.4 and will trigger a logout in 4.0.', E_USER_DEPRECATED);
199+
@trigger_error('Refreshing a deauthenticated user is deprecated as of 3.4 and will trigger a logout in 4.0.', \E_USER_DEPRECATED);
200200
}
201201

202202
$token->setUser($refreshedUser);

Firewall/DigestAuthenticationListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class DigestAuthenticationListener implements ListenerInterface
4444

4545
public function __construct(TokenStorageInterface $tokenStorage, UserProviderInterface $provider, $providerKey, DigestAuthenticationEntryPoint $authenticationEntryPoint, LoggerInterface $logger = null)
4646
{
47-
@trigger_error(sprintf('The %s class and the whole HTTP digest authentication system is deprecated since Symfony 3.4 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
47+
@trigger_error(sprintf('The %s class and the whole HTTP digest authentication system is deprecated since Symfony 3.4 and will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
4848

4949
if (empty($providerKey)) {
5050
throw new \InvalidArgumentException('$providerKey must not be empty.');
@@ -175,10 +175,10 @@ class DigestData
175175

176176
public function __construct($header)
177177
{
178-
@trigger_error(sprintf('The %s class and the whole HTTP digest authentication system is deprecated since Symfony 3.4 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
178+
@trigger_error(sprintf('The %s class and the whole HTTP digest authentication system is deprecated since Symfony 3.4 and will be removed in 4.0.', __CLASS__), \E_USER_DEPRECATED);
179179

180180
$this->header = $header;
181-
preg_match_all('/(\w+)=("((?:[^"\\\\]|\\\\.)+)"|([^\s,$]+))/', $header, $matches, PREG_SET_ORDER);
181+
preg_match_all('/(\w+)=("((?:[^"\\\\]|\\\\.)+)"|([^\s,$]+))/', $header, $matches, \PREG_SET_ORDER);
182182
foreach ($matches as $match) {
183183
if (isset($match[1]) && isset($match[3])) {
184184
$this->elements[$match[1]] = isset($match[4]) ? $match[4] : $match[3];

HttpUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function generateUri($request, $path)
162162
// fortunately, they all are, so we have to remove entire query string
163163
$position = strpos($url, '?');
164164
if (false !== $position) {
165-
$fragment = parse_url($url, PHP_URL_FRAGMENT);
165+
$fragment = parse_url($url, \PHP_URL_FRAGMENT);
166166
$url = substr($url, 0, $position);
167167
// fragment must be preserved
168168
if ($fragment) {

Logout/LogoutUrlGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function registerListener($key, $logoutPath, $csrfTokenId, $csrfParameter
5555
if (__CLASS__ !== static::class) {
5656
$r = new \ReflectionMethod($this, __FUNCTION__);
5757
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
58-
@trigger_error(sprintf('The "%s()" method will have a 6th `string $context = null` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), E_USER_DEPRECATED);
58+
@trigger_error(sprintf('The "%s()" method will have a 6th `string $context = null` argument in version 4.0. Not defining it is deprecated since Symfony 3.3.', __METHOD__), \E_USER_DEPRECATED);
5959
}
6060
}
6161

0 commit comments

Comments
 (0)