Skip to content

Commit 34c0cd2

Browse files
authored
Merge pull request liip#50 from liip/more-cs-fixes
More cs fixes
2 parents a69d991 + 6754d42 commit 34c0cd2

13 files changed

+104
-108
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
'static_lambda' => true,
3939
'ternary_to_null_coalescing' => true,
4040
'void_return' => true,
41-
'new_with_parentheses' => false,
42-
'php_unit_data_provider_static' => false,
43-
'php_unit_data_provider_name' => false,
44-
'php_unit_data_provider_return_type' => false,
4541

4642
// Don't mark tests as @internal
4743
'php_unit_internal_class' => false,

tests/BuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function setUp(): void
4343

4444
public function testBuild(): void
4545
{
46-
$c = new class() {
46+
$c = new class {
4747
/**
4848
* @var Nested
4949
*/

tests/Metadata/PropertyTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class PropertyTypeTest extends TestCase
1919
{
20-
public function provideMergeCases(): iterable
20+
public static function provideMergeCases(): iterable
2121
{
2222
yield [
2323
new PropertyTypeUnknown(true),

tests/Metadata/VersionRangeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testWithUntil(): void
4949
$this->assertSame('2', $version->getUntil());
5050
}
5151

52-
public function provideIsIncludedCases(): iterable
52+
public static function provideIsIncludedCases(): iterable
5353
{
5454
return [
5555
'null is lowest and highest' => [
@@ -93,7 +93,7 @@ public function testIsIncluded(VersionRange $versionRange, string $version, bool
9393
$this->assertSame($expected, $versionRange->isIncluded($version));
9494
}
9595

96-
public function provideAllowsLowerThanCases(): iterable
96+
public static function provideAllowsLowerThanCases(): iterable
9797
{
9898
return [
9999
'same null' => [
@@ -137,7 +137,7 @@ public function testAllowsLowerThan(VersionRange $versionRange, VersionRange $ot
137137
$this->assertSame($lower, $versionRange->allowsLowerThan($other));
138138
}
139139

140-
public function provideAllowsHigherThanCases(): iterable
140+
public static function provideAllowsHigherThanCases(): iterable
141141
{
142142
return [
143143
'same null' => [

tests/ModelParser/JMSParserTest81.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class JMSParserTest81 extends JMSParserTestCase
1616
{
1717
public function testReadOnlyProperty(): void
1818
{
19-
$c = new class() {
19+
$c = new class {
2020
/**
2121
* @JMS\ReadOnlyProperty()
2222
*/
@@ -35,7 +35,7 @@ public function testReadOnlyProperty(): void
3535

3636
public function testAttributes(): void
3737
{
38-
$c = new class() {
38+
$c = new class {
3939
#[JMS\Type('string')]
4040
private $property1;
4141

@@ -62,7 +62,7 @@ public function testAttributes(): void
6262

6363
public function testAttributesMixedWithAnnotations(): void
6464
{
65-
$c = new class() {
65+
$c = new class {
6666
/**
6767
* @JMS\SerializedName("property_mixed")
6868
*
@@ -106,7 +106,7 @@ public function testAttributesMixedWithAnnotations(): void
106106

107107
public function testVirtualPropertyWithoutDocblock(): void
108108
{
109-
$c = new class() {
109+
$c = new class {
110110
#[JMS\VirtualProperty]
111111
public function foo(): string
112112
{

0 commit comments

Comments
 (0)