Skip to content

Commit 932bfb5

Browse files
authored
phpstan config, composer normlalize (#17)
* update dev requirements
1 parent d2d926b commit 932bfb5

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
],
2020
"require": {
2121
"dnadesign/silverstripe-elemental": "^5",
22-
"silverstripe/linkfield":"^4.0",
22+
"silverstripe/linkfield": "^4.0",
2323
"symbiote/silverstripe-gridfieldextensions": "^4"
2424
},
2525
"require-dev": {
26-
"silverstripe/recipe-testing": "^3"
26+
"silverstripe/recipe-testing": "^3",
27+
"silverstripe/standards": "^1",
28+
"squizlabs/php_codesniffer": "^3"
2729
},
2830
"minimum-stability": "dev",
2931
"prefer-stable": true,
@@ -36,8 +38,8 @@
3638
"config": {
3739
"allow-plugins": {
3840
"composer/installers": true,
39-
"silverstripe/vendor-plugin": true,
40-
"silverstripe/recipe-plugin": true
41+
"silverstripe/recipe-plugin": true,
42+
"silverstripe/vendor-plugin": true
4143
},
4244
"process-timeout": 600
4345
}

phpstan.neon.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: 1
3+
treatPhpDocTypesAsCertain: false
4+
paths:
5+
- src

src/Model/LinkListObject.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public function getCMSFields()
127127
->setTitle($this->fieldLabel('Title'))
128128
);
129129

130-
// @phpstan-ignore-next-line
131130
$fields->dataFieldByName('Content')
132131
->setRows(5);
133132

0 commit comments

Comments
 (0)