File tree
171 files changed
+283
-283
lines changed- src/Symfony
- Bridge
- Doctrine
- Form
- Messenger
- PropertyInfo
- Security/RememberMe
- Types
- Validator
- Twig
- DataCollector
- Extension
- Mime
- Translation
- Bundle
- FrameworkBundle
- CacheWarmer
- Command
- Console/Descriptor
- Routing
- Secrets
- Test
- SecurityBundle/DataCollector
- TwigBundle/CacheWarmer
- WebProfilerBundle/Controller
- Component
- BrowserKit
- Cache
- Adapter
- Messenger
- Traits
- Config
- Definition
- Resource
- Console
- Command
- Completion
- DependencyInjection
- Compiler
- < F987 /div>DumperDomCrawlerDotenvErrorHandler
- ErrorEnhancer
- ErrorRenderer
FilesystemFinder- Comparator
- Iterator
Form- ChoiceList/Factory
- Console/Descriptor
- Extension/Core/Type
- UtilHttpClient
- Response
HttpFoundation- Session/Storage/Handler
HttpKernel- Controller
- ArgumentResolver
- DataCollector
- Debug
- EventListener
- Exception
- Profiler
Intl- Data
- Bundle/Reader
- Generator
Ldap/SecurityLock- Store
- Mailer
- Bridge
- Mailchimp/Transport
- Mailgun/Transport
- Mailjet/Transport
- OhMySmtp/Transport
- Postmark/Transport
- Sendinblue/Transport
- Transport
- Smtp
Messenger- Bridge/Redis/Transport
- Command
- DependencyInjection
Notifier- Bridge
- Esendex
- Mercure
- MessageMedia
- Yunpian
- Transport
PasswordHasher/HasherPropertyAccessPropertyInfo- Extractor
Routing- Loader
- Matcher
Security- Core/User
- Http
- Firewall
SemaphoreSerializer- Encoder
- Normalizer
StringTemplatingTranslation/LoaderUid/CommandValidator- Command
- Constraints
- Mapping
VarDumper/CasterVarExporter/InternalYamlContracts/HttpClient/Test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.171 files changed
+283-283lines changedLines changed: 2 additions & 2 deletionsOriginal file line number Diff line number Diff line change @@ -176,9 +176,9 @@ protected function getMetadata(string $class)176
176
foreach ($this->registry->getManagers() as $name => $em) {177
177
try {178
178
return $this->cache[$class] = [$em->getClassMetadata($class), $name];179
-
} catch (MappingException $e) {179
+
} catch (MappingException) {180
180
// not an entity or mapped super class181
-
} catch (LegacyMappingException $e) {181
+
} catch (LegacyMappingException) {182
182
// not an entity or mapped super class, using Doctrine ORM 2.2183
183
}184
184
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -39,7 +39,7 @@ private function pingConnection(EntityManagerInterface $entityManager)39
39
40
40
try {41
41
$connection->executeQuery($connection->getDatabasePlatform()->getDummySelectSQL());42
-
} catch (DBALException $e) {42
+
} catch (DBALException) {43
43
$connection->close();44
44
$connection->connect();45
45
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -212,7 +212,7 @@ private function getMetadata(string $class): ?ClassMetadata212
212
{213
213
try {214
214
return $this->entityManager->getClassMetadata($class);215
-
} catch (MappingException|OrmMappingException $exception) {215
+
} catch (MappingException|OrmMappingException) {216
216
return null;217
217
}218
218
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -163,7 +163,7 @@ public function verifyToken(PersistentTokenInterface $token, string $tokenValue)163
163
// we also accept it as a valid value.164
164
try {165
165
$tmpToken = $this->loadTokenBySeries($tmpSeries);166
-
} catch (TokenNotFoundException $e) {166
+
} catch (TokenNotFoundException) {167
167
return false;168
168
}169
169
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str80
80
81
81
try {82
82
return $this->getUidClass()::fromString($value)->$toString();83
-
} catch (\InvalidArgumentException $e) {83
+
} catch (\InvalidArgumentException) {84
84
throw ConversionException::conversionFailed($value, $this->getName());85
85
}86
86
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function loadClassMetadata(ClassMetadata $metadata): bool50
50
$className = $metadata->getClassName();51
51
try {52
52
$doctrineMetadata = $this->entityManager->getClassMetadata($className);53
-
} catch (MappingException|OrmMappingException $exception) {53
+
} catch (MappingException|OrmMappingException) {54
54
return false;55
55
}56
56
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function getFlashes(string|array $types = null): array139
139
if (null === $session = $this->getSession()) {140
140
return [];141
141
}142
-
} catch (\RuntimeException $e) {142
+
} catch (\RuntimeException) {143
143
return [];144
144
}145
145
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function lateCollect()71
71
if ($profile->isTemplate()) {72
72
try {73
73
$template = $this->twig->load($name = $profile->getName());74
-
} catch (LoaderError $e) {74
+
} catch (LoaderError) {75
75
$template = null;76
76
}77
77
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function isGranted(mixed $role, mixed $object = null, string $field = nul46
46
47
47
try {48
48
return $this->securityChecker->isGranted($role, $object);49
-
} catch (AuthenticationCredentialsNotFoundException $e) {49
+
} catch (AuthenticationCredentialsNotFoundException) {50
50
return false;51
51
}52
52
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private function getFingerPrint(TemplatedEmail $message): string85
85
$payload = [$messageContext, $message->getTextTemplate(), $message->getHtmlTemplate()];86
86
try {87
87
$serialized = serialize($payload);88
-
} catch (\Exception $e) {88
+
} catch (\Exception) {89
89
// Serialization of 'Closure' is not allowed90
90
// Happens when context contain a closure, in that case, we assume that context always change.91
91
$serialized = random_bytes(8);Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function extract($resource, MessageCatalogue $catalogue)53
53
foreach ($this->extractFiles($resource) as $file) {54
54
try {55
55
$this->extractTemplate(file_get_contents($file->getPathname()), $catalogue);56
-
} catch (Error $e) {56
+
} catch (Error) {57
57
// ignore errors, these should be fixed by using the linter58
58
}59
59
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -78,7 +78,7 @@ final protected function ignoreAutoloadException(string $class, \Exception $exce78
78
{79
79
try {80
80
ClassExistenceResource::throwOnRequiredClass($class, $exception);81
-
} catch (\ReflectionException $e) {81
+
} catch (\ReflectionException) {82
82
}83
83
}84
84
Lines changed: 3 additions & 3 deletionsOriginal file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private function readAllComponents(Reader $reader, string $class)85
85
86
86
try {87
87
$reader->getClassAnnotations($reflectionClass);88
-
} catch (AnnotationException $e) {88
+
} catch (AnnotationException) {89
89
/*90
90
* Ignore any AnnotationException to not break the cache warming process if an Annotation is badly91
91
* configured or could not be found / read / etc.@@ -99,14 +99,14 @@ private function readAllComponents(Reader $reader, string $class)99
99
foreach ($reflectionClass->getMethods() as $reflectionMethod) {100
100
try {101
101
$reader->getMethodAnnotations($reflectionMethod);102
-
} catch (AnnotationException $e) {102
+
} catch (AnnotationException) {103
103
}104
104
}105
105
106
106
foreach ($reflectionClass->getProperties() as $reflectionProperty) {107
107
try {108
108
$reader->getPropertyAnnotations($reflectionProperty);109
-
} catch (AnnotationException $e) {109
+
} catch (AnnotationException) {110
110
}111
111
}112
112
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -54,7 +54,7 @@ protected function doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter): bool54
54
foreach ($loader->getMappedClasses() as $mappedClass) {55
55
try {56
56
$metadataFactory->getMetadataFor($mappedClass);57
-
} catch (AnnotationException $e) {57
+
} catch (AnnotationException) {58
58
// ignore failing annotations59
59
} catch (\Exception $e) {60
60
$this->ignoreAutoloadException($mappedClass, $e);Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -57,7 +57,7 @@ protected function doWarmUp(string $cacheDir, ArrayAdapter $arrayAdapter): bool57
57
if ($metadataFactory->hasMetadataFor($mappedClass)) {58
58
$metadataFactory->getMetadataFor($mappedClass);59
59
}60
-
} catch (AnnotationException $e) {60
+
} catch (AnnotationException) {61
61
// ignore failing annotations62
62
} catch (\Exception $e) {63
63
$this->ignoreAutoloadException($mappedClass, $e);Lines changed: 2 additions & 2 deletionsOriginal file line number Diff line number Diff line change @@ -202,7 +202,7 @@ private function relativeSymlinkWithFallback(string $originDir, string $targetDi202
202
try {203
203
$this->symlink($originDir, $targetDir, true);204
204
$method = self::METHOD_RELATIVE_SYMLINK;205
-
} catch (IOException $e) {205
+
} catch (IOException) {206
206
$method = $this->absoluteSymlinkWithFallback($originDir, $targetDir);207
207
}208
208
@@ -219,7 +219,7 @@ private function absoluteSymlinkWithFallback(string $originDir, string $targetDi219
219
try {220
220
$this->symlink($originDir, $targetDir);221
221
$method = self::METHOD_ABSOLUTE_SYMLINK;222
-
} catch (IOException $e) {222
+
} catch (IOException) {223
223
// fall back to copy224
224
$method = $this->hardCopy($originDir, $targetDir);225
225
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -195,7 +195,7 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti195
195
$config = $this->getConfig($this->findExtension($name), $this->compileContainer());196
196
$paths = array_keys(self::buildPathsCompletion($config));197
197
$suggestions->suggestValues($paths);198
-
} catch (LogicException $e) {198
+
} catch (LogicException) {199
199
}200
200
}201
201
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -153,7 +153,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int153
153
if ($this->defaultViewsPath) {154
154
$codePaths[] = $this->defaultViewsPath;155
155
}156
-
} catch (\InvalidArgumentException $e) {156
+
} catch (\InvalidArgumentException) {157
157
// such a bundle does not exist, so treat the argument as path158
158
$path = $input->getArgument('bundle');159
159
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -186,7 +186,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int186
186
$codePaths[] = $this->defaultViewsPath;187
187
}188
188
$currentName = $foundBundle->getName();189
-
} catch (\InvalidArgumentException $e) {189
+
} catch (\InvalidArgumentException) {190
190
// such a bundle does not exist, so treat the argument as path191
191
$path = $input->getArgument('bundle');192
192
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -299,7 +299,7 @@ public static function getClassDescription(string $class, string &$resolvedClass299
299
300
300
return trim(preg_replace('#\s*\n\s*\*\s*#', ' ', $docComment));301
301
}302
-
} catch (\ReflectionException $e) {302
+
} catch (\ReflectionException) {303
303
}304
304
305
305
return '';Lines changed: 2 additions & 2 deletionsOriginal file line number Diff line number Diff line change @@ -563,7 +563,7 @@ private function formatControllerLink(mixed $controller, string $anchorText, cal563
563
} else {564
564
$r = new \ReflectionFunction($controller);565
565
}566
-
} catch (\ReflectionException $e) {566
+
} catch (\ReflectionException) {567
567
if (\is_array($controller)) {568
568
$controller = implode('::', $controller);569
569
}@@ -582,7 +582,7 @@ private function formatControllerLink(mixed $controller, string $anchorText, cal582
582
583
583
try {584
584
$r = new \ReflectionMethod($container->findDefinition($id)->getClass(), $method);585
-
} catch (\ReflectionException $e) {585
+
} catch (\ReflectionException) {586
586
return $anchorText;587
587
}588
588
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public function getRouteCollection(): RouteCollection76
76
} else {77
77
$this->collection->addResource(new FileExistenceResource($containerFile));78
78
}79
-
} catch (ParameterNotFoundException $exception) {79
+
} catch (ParameterNotFoundException) {80
80
}81
81
}82
82
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function generateKeys(bool $override = false): bool51
51
52
52
try {53
53
$this->loadKeys();54
-
} catch (\RuntimeException $e) {54
+
} catch (\RuntimeException) {55
55
// ignore failures to load keys56
56
}57
57
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -45,7 +45,7 @@ protected static function createClient(array $options = [], array $server = []):45
45
46
46
try {47
47
$client = $kernel->getContainer()->get('test.client');48
-
} catch (ServiceNotFoundException $e) {48
+
} catch (ServiceNotFoundException) {49
49
if (class_exists(KernelBrowser::class)) {50
50
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');51
51
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public function collect(Request $request, Response $response, \Throwable $except111
111
$logoutUrl = null;112
112
try {113
113
$logoutUrl = $this->logoutUrlGenerator?->getLogoutPath();114
-
} catch (\Exception $e) {114
+
} catch (\Exception) {115
115
// fail silently when the logout URL cannot be generated116
116
}117
117
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function warmUp(string $cacheDir): array53
53
if (\is_callable([$template, 'unwrap'])) {54
54
$files[] = (new \ReflectionClass($template->unwrap()))->getFileName();55
55
}56
-
} catch (Error $e) {56
+
} catch (Error) {57
57
/*58
58
* Problem during compilation, give up for this template (e.g. syntax errors).59
59
* Failing silently here allows to ignore templates that rely on functions that aren't available inLines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public function toolbarAction(Request $request, string $token = null): Response146
146
$url = null;147
147
try {148
148
$url = $this->generator->generate('_profiler', ['token' => $token], UrlGeneratorInterface::ABSOLUTE_URL);149
-
} catch (\Exception $e) {149
+
} catch (\Exception) {150
150
// the profiler is not enabled151
151
}152
152
Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public function updateFromSetCookie(array $setCookies, string $uri = null)122
122
foreach ($cookies as $cookie) {123
123
try {124
124
$this->set(Cookie::fromString($cookie, $uri));125
-
} catch (\InvalidArgumentException $e) {125
+
} catch (\InvalidArgumentException) {126
126
// invalid cookies are just ignored127
127
}128
128
}Lines changed: 2 additions & 2 deletionsOriginal file line number Diff line number Diff line change @@ -253,15 +253,15 @@ public function deleteItems(array $keys): bool253
253
$tagData[$this->getId(self::TAGS_PREFIX.$tag)][] = $id;254
254
}255
255
}256
-
} catch (\Exception $e) {256
+
} catch (\Exception) {257
257
$ok = false;258
258
}259
259
260
260
try {261
261
if ((!$tagData || $this->doDeleteTagRelations($tagData)) && $ok) {262
262
return true;263
263
}264
-
} catch (\Exception $e) {264
+
} catch (\Exception) {265
265
}266
266
267
267
// When bulk-delete failed, retry each item individuallyLines changed: 3 additions & 3 deletionsOriginal file line number Diff line number Diff line change @@ -140,7 +140,7 @@ protected function doFetch(array $ids): array140
140
foreach ($ids as $id) {141
141
try {142
142
$resultCouchbase = $this->connection->get($id);143
-
} catch (DocumentNotFoundException $exception) {143
+
} catch (DocumentNotFoundException) {144
144
continue;145
145
}146
146
@@ -181,7 +181,7 @@ protected function doDelete(array $ids): bool181
181
if (null === $result->mutationToken()) {182
182
$idsErrors[] = $id;183
183
}184
-
} catch (DocumentNotFoundException $exception) {184
+
} catch (DocumentNotFoundException) {185
185
}186
186
}187
187
@@ -204,7 +204,7 @@ protected function doSave(array $values, $lifetime): array|bool204
204
foreach ($values as $key => $value) {205
205
try {206
206
$this->connection->upsert($key, $value, $upsertOptions);207
-
} catch (\Exception $exception) {207
+
} catch (\Exception) {208
208
$ko[$key] = '';209
209
}210
210
}Lines changed: 6 additions & 6 deletionsOriginal file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public function prune(): bool132
132
133
133
try {134
134
$this->conn->executeStatement($deleteSql, $params, $paramTypes);135
-
} catch (TableNotFoundException $e) {135
+
} catch (TableNotFoundException) {136
136
}137
137
138
138
return true;@@ -209,7 +209,7 @@ protected function doClear(string $namespace): bool209
209
210
210
try {211
211
$this->conn->executeStatement($sql);212
-
} catch (TableNotFoundException $e) {212
+
} catch (TableNotFoundException) {213
213
}214
214
215
215
return true;@@ -223,7 +223,7 @@ protected function doDelete(array $ids): bool223
223
$sql = "DELETE FROM $this->table WHERE $this->idCol IN (?)";224
224
try {225
225
$this->conn->executeStatement($sql, [array_values($ids)], [Connection::PARAM_STR_ARRAY]);226
-
} catch (TableNotFoundException $e) {226
+
} catch (TableNotFoundException) {227
227
}228
228
229
229
return true;@@ -274,7 +274,7 @@ protected function doSave(array $values, int $lifetime): array|bool274
274
$lifetime = $lifetime ?: null;275
275
try {276
276
$stmt = $this->conn->prepare($sql);277
-
} catch (TableNotFoundException $e) {277
+
} catch (TableNotFoundException) {278
278
if (!$this->conn->isTransactionActive() || \in_array($platformName, ['pgsql', 'sqlite', 'sqlsrv'], true)) {279
279
$this->createTable();280
280
}@@ -312,7 +312,7 @@ protected function doSave(array $values, int $lifetime): array|bool312
312
foreach ($values as $id => $data) {313
313
try {314
314
$rowCount = $stmt->executeStatement();315
-
} catch (TableNotFoundException $e) {315
+
} catch (TableNotFoundException) {316
316
if (!$this->conn->isTransactionActive() || \in_array($platformName, ['pgsql', 'sqlite', 'sqlsrv'], true)) {317
317
$this->createTable();318
318
}@@ -321,7 +321,7 @@ protected function doSave(array $values, int $lifetime): array|bool321
321
if (null === $platformName && 0 === $rowCount) {322
322
try {323
323
$insertStmt->executeStatement();324
-
} catch (DBALException $e) {324
+
} catch (DBALException) {325
325
// A concurrent write won, let it be326
326
}327
327
}Lines changed: 1 addition & 1 deletionOriginal file line number Diff line number Diff line change @@ -159,7 +159,7 @@ protected function doDeleteYieldTags(array $ids): iterable159
159
160
160
try {161
161
yield $id => '' === $meta ? [] : $this->marshaller->unmarshall($meta);162
-
} catch (\Exception $e) {162
+
} catch (\Exception) {163
163
yield $id => [];164
164
}165
165
}
0 commit comments