Skip to content

Commit aead5ca

Browse files
authored
Fix psalm errors + Fix StyleCI config + Fix BC checker (#78)
1 parent 34fab11 commit aead5ca

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

.github/workflows/bc.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ on:
33
- push
44

55
name: backwards compatibility
6+
67
jobs:
78
roave_bc_check:
8-
name: Roave BC Check
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@master
12-
- name: fetch tags
13-
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
14-
- name: Roave BC Check
15-
uses: docker://nyholm/roave-bc-check-ga
9+
uses: yiisoft/actions/.github/workflows/bc.yml@master
10+
with:
11+
os: >-
12+
['ubuntu-latest']
13+
php: >-
14+
['8.0']

.styleci.yml

+7-10
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

psalm.xml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0"?>
22
<psalm
33
errorLevel="1"
4+
findUnusedBaselineEntry="true"
5+
findUnusedCode="false"
46
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
57
xmlns="https://getpsalm.org/schema/config"
68
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

src/MiddlewareFactory.php

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ private function wrapCallable(array|callable $callable): MiddlewareInterface
142142
private function createCallableWrapper(callable $callback): MiddlewareInterface
143143
{
144144
return new class ($callback, $this->container, $this->parametersResolver) implements MiddlewareInterface {
145+
/** @var callable */
145146
private $callback;
146147
/** @var ReflectionParameter[] */
147148
private array $callableParameters;

0 commit comments

Comments
 (0)