Skip to content

Commit 2027cc2

Browse files
committed
fix cs
1 parent 40a6952 commit 2027cc2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "struggle-for-php/sfp-phpstan-dont-operation-inside-constructor",
3-
"description": "Extra strict and opinionated resource operation rules.neon for PHPStan",
3+
"description": "Extra strict and opinionated resource operation rules for PHPStan",
44
"type": "phpstan-extension",
55
"keywords": ["phpstan", "static analysis", "constructor", "operation", "resource"],
66
"license": [

test/Rules/ResourceOperationMethodCallRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public function getRule(): Rule
2121

2222
public function testProcess(): void
2323
{
24-
$this->analyse([__DIR__ . '/data/resourceOperationMethodCall.php'], [
24+
$this->analyse([__DIR__ . '/data/ResourceOperationMethodCall.php'], [
2525
[
2626
"Don't resource operation inside constructor. Method SplFileInfo::openfile() is called.",
27-
10,
27+
14,
2828
],
2929
]);
3030
}

test/Rules/data/resourceOperationMethodCall.php renamed to test/Rules/data/ResourceOperationMethodCall.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
declare(strict_types=1);
44

5-
class Test
5+
namespace SfpTest\PHPStan\DontOperationInsideConstructor\Rules\data;
6+
7+
use SplFileInfo;
8+
9+
class ResourceOperationMethodCall
610
{
711
public function __construct()
812
{

0 commit comments

Comments
 (0)