Skip to content

Commit c8b6d48

Browse files
authored
More rector fixes (#1985)
1 parent 142d703 commit c8b6d48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function deserializeFile(string $filename, string $format = 'json', strin
9090
$contents = file_get_contents($filename);
9191

9292
$ext = pathinfo($filename, PATHINFO_EXTENSION);
93-
if ('yaml' === $format || in_array($ext, ['yml', 'yaml'])) {
93+
if ('yaml' === $format || in_array($ext, ['yml', 'yaml'], true)) {
9494
$contents = json_encode(Yaml::parse($contents));
9595
}
9696

src/Type/LegacyTypeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function doAugment(Analysis $analysis, OA\Schema $schema, \Reflector $
7272

7373
protected function normaliseTypeResult(?string $explicitType = null, ?array $explicitDetails = null, array $types = [], ?string $name = null, ?bool $nullable = null, ?bool $isArray = null, bool $unsupported = false, ?Context $context = null): \stdClass
7474
{
75-
$types = array_filter($types, fn (string $t): bool => !in_array($t, ['null', '']));
75+
$types = array_filter($types, fn (string $t): bool => !in_array($t, ['null', ''], true));
7676

7777
if ($context) {
7878
foreach ($types as $ii => $type) {

0 commit comments

Comments
 (0)