Skip to content

Commit 877dc80

Browse files
authored
Merge branch 'master' into add-error-dispatching
2 parents 2cdc518 + 9928602 commit 877dc80

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.styleci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
preset: psr12
22
risky: true
33

4-
version: 8
4+
version: 8.1
55

66
finder:
77
exclude:
88
- docs
99
- vendor
10-
- resources
11-
- views
12-
- public
13-
- templates
14-
not-name:
15-
- UnionCar.php
16-
- TimerUnionTypes.php
17-
- schema1.php
1810

1911
enabled:
2012
- alpha_ordered_traits
@@ -64,7 +56,6 @@ enabled:
6456
- phpdoc_order
6557
- phpdoc_property
6658
- phpdoc_scalar
67-
- phpdoc_separation
6859
- phpdoc_singular_inheritdoc
6960
- phpdoc_trim
7061
- phpdoc_trim_consecutive_blank_line_separation
@@ -86,3 +77,9 @@ enabled:
8677
- trailing_comma_in_multiline_array
8778
- unalign_double_arrow
8879
- unalign_equals
80+
- empty_loop_body_braces
81+
- integer_literal_case
82+
- union_type_without_spaces
83+
84+
disabled:
85+
- function_declaration

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ $response = $exceptionResponder->process($request, $handler);
195195
In the application middleware stack `Yiisoft\ErrorHandler\Middleware\ExceptionResponder` must be placed before
196196
`Yiisoft\ErrorHandler\Middleware\ErrorCatcher`.
197197

198-
For use in the [Yii framework](http://www.yiiframework.com/),
198+
For use in the [Yii framework](https://www.yiiframework.com/),
199199
see [Yii guide to handling errors](https://github.com/yiisoft/docs/blob/master/guide/en/runtime/handling-errors.md).
200200

201201
## Events

src/Exception/ErrorException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function addXDebugTraceToFatalIfAvailable(): void
9898
$frame['function'] = 'unknown';
9999
}
100100

101-
// XDebug < 2.1.1: http://bugs.xdebug.org/view.php?id=695
101+
// XDebug < 2.1.1: https://bugs.xdebug.org/view.php?id=695
102102
if (!isset($frame['type']) || $frame['type'] === 'static') {
103103
$frame['type'] = '::';
104104
} elseif ($frame['type'] === 'dynamic') {

src/Renderer/HtmlRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ private function renderTemplate(string $path, array $parameters): string
446446
ob_implicit_flush(false);
447447

448448
try {
449+
/** @psalm-suppress PossiblyNullFunctionCall */
449450
$renderer->bindTo($this)($path, $parameters);
450451
return ob_get_clean();
451452
} catch (Throwable $e) {

0 commit comments

Comments
 (0)