diff --git a/tests/Utils/Finder.filters.phpt b/tests/Utils/Finder.filters.phpt index 786bc7104..b5be8d33c 100644 --- a/tests/Utils/Finder.filters.phpt +++ b/tests/Utils/Finder.filters.phpt @@ -76,13 +76,13 @@ test('custom filter', function () { }); -test('custom filter', function () { - function filter(FileInfo $file) - { - return $file->getBaseName() === 'file.txt'; - } +function filter(FileInfo $file) +{ + return $file->getBaseName() === 'file.txt'; +} +test('custom filter', function () { $finder = Finder::findFiles('*') ->from('fixtures.finder') ->filter('filter'); diff --git a/tests/Utils/Type.fromReflection.function.82.phpt b/tests/Utils/Type.fromReflection.function.82.phpt index 5a70e9da6..d1f527edb 100644 --- a/tests/Utils/Type.fromReflection.function.82.phpt +++ b/tests/Utils/Type.fromReflection.function.82.phpt @@ -54,5 +54,5 @@ Assert::same('int', (string) $type); // disjunctive normal form -$type = Type::fromReflection(new ReflectionFunction(function (): (Bar & Foo)|string|int|null {})); +$type = Type::fromReflection(new ReflectionFunction(function (): (Bar & Foo) | string | int | null {})); Assert::same('(Bar&Foo)|string|int|null', (string) $type);