Skip to content

Commit e35c36a

Browse files
committed
Few more PHP 7.4 mixed fixes
1 parent 5962e1e commit e35c36a

File tree

4 files changed

+4
-4
lines changed
  • tests/Rule/data

4 files changed

+4
-4
lines changed

tests/Rule/data/ForbidCustomFunctionsRule/code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Test
5555
* @param class-string<SomeClass> $classString
5656
*/
5757
public function test(
58-
mixed $classStringOrTheClass,
58+
$classStringOrTheClass,
5959
string $classString,
6060
SomeClass $class,
6161
SomeClass|AnotherClass $union,

tests/Rule/data/ForbidFetchOnMixedRuleTest/code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Foo {
1111
public static ?int $staticProperty = null;
1212
}
1313

14-
$fn = function (mixed $mixed, $unknown, string $string, array $array, ReflectionClass $reflection, ?Foo $fooOrNull, object $object) {
14+
$fn = function ($mixed, $unknown, string $string, array $array, ReflectionClass $reflection, ?Foo $fooOrNull, object $object) {
1515
(new Foo)->property;
1616
Foo::$staticProperty;
1717
Foo::CONST;

tests/Rule/data/ForbidMethodCallOnMixedRule/code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public function method() {}
99
public static function staticMethod() {}
1010
}
1111

12-
$fn = function (mixed $mixed, $unknown, array $array, string $string, ?Foo $fooOrNull, ReflectionClass $reflection) {
12+
$fn = function ($mixed, $unknown, array $array, string $string, ?Foo $fooOrNull, ReflectionClass $reflection) {
1313

1414
$foo = new Foo();
1515
$foo->method();

tests/Rule/data/UselessPrivatePropertyNullabilityRule/code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ExampleClass
2626
private $isUninitializedWithoutTypehint;
2727

2828
public function __construct(
29-
mixed $mixed,
29+
$mixed,
3030
int $isPublic,
3131
int $isProtected,
3232
int $isPrivate,

0 commit comments

Comments
 (0)