Skip to content

Commit 1f3aa51

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: fixed CS Fixed return type
2 parents c2cccaf + 8072eed commit 1f3aa51

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Bridge/Monolog/Handler/FingersCrossed/NotFoundActivationStrategy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function isHandlerActivated(array $record)
4242
$isActivated
4343
&& isset($record['context']['exception'])
4444
&& $record['context']['exception'] instanceof HttpException
45-
&& $record['context']['exception']->getStatusCode() == 404
45+
&& 404 == $record['context']['exception']->getStatusCode()
4646
&& ($request = $this->requestStack->getMasterRequest())
4747
) {
4848
return !preg_match($this->blacklist, $request->getPathInfo());

src/Symfony/Component/Finder/Shell/Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function top($bit)
104104
array_unshift($this->bits, $bit);
105105

106106
foreach ($this->labels as $label => $index) {
107-
$this->labels[$label] += 1;
107+
++$this->labels[$label];
108108
}
109109

110110
return $this;

src/Symfony/Component/HttpFoundation/Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ public function getRealMethod()
13011301
*
13021302
* @param string $format The format
13031303
*
1304-
* @return string The associated mime type (null if not found)
1304+
* @return string|null The associated mime type (null if not found)
13051305
*/
13061306
public function getMimeType($format)
13071307
{

0 commit comments

Comments
 (0)