Skip to content

Commit a65222b

Browse files
committed
Add missing dots at the end of exception messages
1 parent a270dbf commit a65222b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

DeprecationErrorHandler/Configuration.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ private function __construct(array $thresholds = [], $regex = '', $verboseOutput
4848

4949
foreach ($thresholds as $group => $threshold) {
5050
if (!\in_array($group, $groups, true)) {
51-
throw new \InvalidArgumentException(sprintf('Unrecognized threshold "%s", expected one of "%s"', $group, implode('", "', $groups)));
51+
throw new \InvalidArgumentException(sprintf('Unrecognized threshold "%s", expected one of "%s".', $group, implode('", "', $groups)));
5252
}
5353
if (!is_numeric($threshold)) {
54-
throw new \InvalidArgumentException(sprintf('Threshold for group "%s" has invalid value "%s"', $group, $threshold));
54+
throw new \InvalidArgumentException(sprintf('Threshold for group "%s" has invalid value "%s".', $group, $threshold));
5555
}
5656
$this->thresholds[$group] = (int) $threshold;
5757
}
@@ -146,7 +146,7 @@ public static function fromUrlEncodedString($serializedConfiguration)
146146
parse_str($serializedConfiguration, $normalizedConfiguration);
147147
foreach (array_keys($normalizedConfiguration) as $key) {
148148
if (!\in_array($key, ['max', 'disabled', 'verbose'], true)) {
149-
throw new \InvalidArgumentException(sprintf('Unknown configuration option "%s"', $key));
149+
throw new \InvalidArgumentException(sprintf('Unknown configuration option "%s".', $key));
150150
}
151151
}
152152

DeprecationErrorHandler/Deprecation.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function originatesFromAnObject()
109109
public function originatingClass()
110110
{
111111
if (null === $this->originClass) {
112-
throw new \LogicException('Check with originatesFromAnObject() before calling this method');
112+
throw new \LogicException('Check with originatesFromAnObject() before calling this method.');
113113
}
114114

115115
return $this->originClass;
@@ -121,7 +121,7 @@ public function originatingClass()
121121
public function originatingMethod()
122122
{
123123
if (null === $this->originMethod) {
124-
throw new \LogicException('Check with originatesFromAnObject() before calling this method');
124+
throw new \LogicException('Check with originatesFromAnObject() before calling this method.');
125125
}
126126

127127
return $this->originMethod;
@@ -237,7 +237,7 @@ private function getPackage($path)
237237
$relativePath = substr($path, \strlen($vendorRoot) + 1);
238238
$vendor = strstr($relativePath, \DIRECTORY_SEPARATOR, true);
239239
if (false === $vendor) {
240-
throw new \RuntimeException(sprintf('Could not find directory separator "%s" in path "%s"', \DIRECTORY_SEPARATOR, $relativePath));
240+
throw new \RuntimeException(sprintf('Could not find directory separator "%s" in path "%s".', \DIRECTORY_SEPARATOR, $relativePath));
241241
}
242242

243243
return rtrim($vendor.'/'.strstr(substr(
@@ -247,7 +247,7 @@ private function getPackage($path)
247247
}
248248
}
249249

250-
throw new \RuntimeException(sprintf('No vendors found for path "%s"', $path));
250+
throw new \RuntimeException(sprintf('No vendors found for path "%s".', $path));
251251
}
252252

253253
/**

0 commit comments

Comments
 (0)