Skip to content

Commit

Permalink
Few more PHP 7.4 mixed fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Oct 2, 2024
1 parent 5962e1e commit e35c36a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Rule/data/ForbidCustomFunctionsRule/code.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Test
* @param class-string<SomeClass> $classString
*/
public function test(
mixed $classStringOrTheClass,
$classStringOrTheClass,
string $classString,
SomeClass $class,
SomeClass|AnotherClass $union,
Expand Down
2 changes: 1 addition & 1 deletion tests/Rule/data/ForbidFetchOnMixedRuleTest/code.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Foo {
public static ?int $staticProperty = null;
}

$fn = function (mixed $mixed, $unknown, string $string, array $array, ReflectionClass $reflection, ?Foo $fooOrNull, object $object) {
$fn = function ($mixed, $unknown, string $string, array $array, ReflectionClass $reflection, ?Foo $fooOrNull, object $object) {
(new Foo)->property;
Foo::$staticProperty;
Foo::CONST;
Expand Down
2 changes: 1 addition & 1 deletion tests/Rule/data/ForbidMethodCallOnMixedRule/code.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public function method() {}
public static function staticMethod() {}
}

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

$foo = new Foo();
$foo->method();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExampleClass
private $isUninitializedWithoutTypehint;

public function __construct(
mixed $mixed,
$mixed,
int $isPublic,
int $isProtected,
int $isPrivate,
Expand Down

0 comments on commit e35c36a

Please sign in to comment.