Skip to content

Commit 5f12265

Browse files
committed
Update build-cs
1 parent dffaf82 commit 5f12265

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
with:
5757
repository: "phpstan/build-cs"
5858
path: "build-cs"
59-
ref: "1.x"
59+
ref: "2.x"
6060

6161
- name: "Install PHP"
6262
uses: "shivammathur/setup-php@v2"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lint:
1313
.PHONY: cs-install
1414
cs-install:
1515
git clone https://github.com/phpstan/build-cs.git || true
16-
git -C build-cs fetch origin && git -C build-cs reset --hard origin/1.x
16+
git -C build-cs fetch origin && git -C build-cs reset --hard origin/2.x
1717
composer install --working-dir build-cs
1818

1919
.PHONY: cs

src/Reflection/Dibi/DibiFluentMethodReflection.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
class DibiFluentMethodReflection implements MethodReflection
1616
{
1717

18-
/** @var string */
19-
private $name;
18+
private string $name;
2019

21-
/** @var ClassReflection */
22-
private $dibiFluent;
20+
private ClassReflection $dibiFluent;
2321

2422
public function __construct(string $name, ClassReflection $dibiFluent)
2523
{
@@ -68,7 +66,7 @@ public function getVariants(): array
6866
TemplateTypeMap::createEmpty(),
6967
[],
7068
true,
71-
new ObjectType('Dibi\Fluent')
69+
new ObjectType('Dibi\Fluent'),
7270
),
7371
];
7472
}

tests/Reflection/Dibi/DibiFluentClassReflectionExtensionTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
class DibiFluentClassReflectionExtensionTest extends PHPStanTestCase
1313
{
1414

15-
/** @var Broker */
16-
private $broker;
15+
private Broker $broker;
1716

18-
/** @var DibiFluentClassReflectionExtension */
19-
private $extension;
17+
private DibiFluentClassReflectionExtension $extension;
2018

2119
protected function setUp(): void
2220
{

0 commit comments

Comments
 (0)