Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9ba8f05

Browse filesBrowse files
committed
Don't use sprintf in trigger_deprecation() calls
1 parent f052d11 commit 9ba8f05
Copy full SHA for 9ba8f05
Expand file treeCollapse file tree

16 files changed

+16
-16
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Component/DomCrawler/Crawler.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/DomCrawler/Crawler.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function previousAll()
502502
*/
503503
public function parents()
504504
{
505-
trigger_deprecation('symfony/dom-crawler', '5.3', sprintf('The %s() method is deprecated, use ancestors() instead.', __METHOD__));
505+
trigger_deprecation('symfony/dom-crawler', '5.3', 'The %s() method is deprecated, use ancestors() instead.', __METHOD__);
506506

507507
return $this->ancestors();
508508
}
Collapse file

‎src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Session\Attribute;
1313

14-
trigger_deprecation('symfony/http-foundation', '5.3', sprintf('The "%s" class is deprecated.', NamespacedAttributeBag::class));
14+
trigger_deprecation('symfony/http-foundation', '5.3', 'The "%s" class is deprecated.', NamespacedAttributeBag::class);
1515

1616
/**
1717
* This class provides structured storage of session attributes using
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/BasePasswordEncoder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\PasswordHasher\Hasher\CheckPasswordLengthTrait;
1515

16-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', BasePasswordEncoder::class, CheckPasswordLengthTrait::class));
16+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', BasePasswordEncoder::class, CheckPasswordLengthTrait::class);
1717

1818
/**
1919
* BasePasswordEncoder is the base class for all password encoders.
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/EncoderFactory.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/EncoderFactory.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory;
1616
use Symfony\Component\Security\Core\Exception\LogicException;
1717

18-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', EncoderFactory::class, PasswordHasherFactory::class));
18+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', EncoderFactory::class, PasswordHasherFactory::class);
1919

2020
/**
2121
* A generic encoder factory implementation.
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/EncoderFactoryInterface.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/EncoderFactoryInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface;
1515
use Symfony\Component\Security\Core\User\UserInterface;
1616

17-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', EncoderFactoryInterface::class, PasswordHasherFactoryInterface::class));
17+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', EncoderFactoryInterface::class, PasswordHasherFactoryInterface::class);
1818

1919
/**
2020
* EncoderFactoryInterface to support different encoders for different accounts.
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/MessageDigestPasswordEncoder.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/MessageDigestPasswordEncoder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\PasswordHasher\Hasher\MessageDigestPasswordHasher;
1515

16-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', MessageDigestPasswordEncoder::class, MessageDigestPasswordHasher::class));
16+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', MessageDigestPasswordEncoder::class, MessageDigestPasswordHasher::class);
1717

1818
/**
1919
* MessageDigestPasswordEncoder uses a message digest algorithm.
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/MigratingPasswordEncoder.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/MigratingPasswordEncoder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\PasswordHasher\Hasher\MigratingPasswordHasher;
1515

16-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', MigratingPasswordEncoder::class, MigratingPasswordHasher::class));
16+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', MigratingPasswordEncoder::class, MigratingPasswordHasher::class);
1717

1818
/**
1919
* Hashes passwords using the best available encoder.
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/NativePasswordEncoder.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/NativePasswordEncoder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher;
1515

16-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', NativePasswordEncoder::class, NativePasswordHasher::class));
16+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', NativePasswordEncoder::class, NativePasswordHasher::class);
1717

1818
/**
1919
* Hashes passwords using password_hash().
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/PasswordEncoderInterface.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/PasswordEncoderInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\PasswordHasher\PasswordHasherInterface;
1515
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
1616

17-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', PasswordEncoderInterface::class, PasswordHasherInterface::class));
17+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', PasswordEncoderInterface::class, PasswordHasherInterface::class);
1818

1919
/**
2020
* PasswordEncoderInterface is the interface for all encoders.
Collapse file

‎src/Symfony/Component/Security/Core/Encoder/Pbkdf2PasswordEncoder.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encoder/Pbkdf2PasswordEncoder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\PasswordHasher\Hasher\Pbkdf2PasswordHasher;
1515

16-
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', Pbkdf2PasswordEncoder::class, Pbkdf2PasswordHasher::class));
16+
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', Pbkdf2PasswordEncoder::class, Pbkdf2PasswordHasher::class);
1717

1818
/**
1919
* Pbkdf2PasswordEncoder uses the PBKDF2 (Password-Based Key Derivation Function 2).

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.